baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
rhuang_ has joined #ruby
rhuang_ has quit [Remote host closed the connection]
waheedi has quit [Quit: waheedi]
ramfjord has quit [Ping timeout: 252 seconds]
rhuang_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
fphilipe has joined #ruby
jenrzzz has joined #ruby
gix has quit [Ping timeout: 246 seconds]
comet23 has joined #ruby
<comet23> hello everyone
<comet23> how do i "wrap" around values?
ramfjord has quit [Ping timeout: 246 seconds]
<comet23> like let's say i have an array with a range and then it goes out of bounds
<comet23> i want it to go back to the first index and then until x number of desired iterations
<baweaver> Read through Enumerable, see what you find
<comet23> like [1,2,3] iterate 5 times and you start at 0 and you would get the 2nd index with the value of 3
SeepingN has quit [Ping timeout: 244 seconds]
<baweaver> There's a method in there which does pretty well exactly that
<comet23> thank you :)
budonyc has joined #ruby
<havenwood> &>> [1, 2, 3].cycle.lazy.drop(5).first
<rubydoc> # => 3 (https://carc.in/#/r/6vlm)
<comet23> i found it... i am trying to incorporate it with a caesar cipher solution
<comet23> i have to go to bed now but i think i will solve it :D
<havenwood> &>> [1, 2, 3].then { |a| a[5 % a.size] }
<rubydoc> # => 3 (https://carc.in/#/r/6vln)
fphilipe has quit [Ping timeout: 258 seconds]
altigraph has joined #ruby
millerti has quit [Ping timeout: 252 seconds]
rhuang_ has quit [Remote host closed the connection]
houhoulis has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
twoone has quit [Ping timeout: 252 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
tdy has joined #ruby
rhuang_ has joined #ruby
rhuang_ has quit [Ping timeout: 252 seconds]
jameser has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
s00pcan has joined #ruby
fphilipe has joined #ruby
jenrzzz has joined #ruby
nowhere_man has quit [Remote host closed the connection]
dhuey has joined #ruby
rhuang_ has joined #ruby
haengma has joined #ruby
rhuang_ has quit [Ping timeout: 248 seconds]
haengma has quit [Ping timeout: 244 seconds]
tdy has quit [Ping timeout: 252 seconds]
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
pwnd_nsfw has quit [Ping timeout: 252 seconds]
budonyc has quit [Quit: Leaving]
budonyc has joined #ruby
budonyc has quit [Client Quit]
pwnd_nsfw has joined #ruby
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
tdy has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
sdrew has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
gnufied has quit [Quit: Leaving]
braincrash has quit [Quit: bye bye]
sdrew has quit [Quit: *poof*]
braincrash has joined #ruby
dhuey_ has joined #ruby
dhuey_ has quit [Remote host closed the connection]
dhuey_ has joined #ruby
dhuey_ has quit [Client Quit]
dhuey has quit [Ping timeout: 248 seconds]
fphilipe has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
spacesuitdiver has joined #ruby
rhuang_ has joined #ruby
zacts has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
hightower2 has joined #ruby
Azure|dc has joined #ruby
ricekrispie has joined #ruby
weteamsteve has quit [Read error: Connection reset by peer]
ricekrispie2 has quit [Ping timeout: 245 seconds]
Azure has quit [Ping timeout: 246 seconds]
noobineer has quit [Remote host closed the connection]
haengma has joined #ruby
maryo_ has quit [Quit: Leaving]
sauvin has joined #ruby
haengma has quit [Ping timeout: 252 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has quit [Ping timeout: 246 seconds]
rhuang_ has quit [Ping timeout: 244 seconds]
conta has joined #ruby
tdy has quit [Ping timeout: 248 seconds]
conta has quit [Client Quit]
brool has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
hiroaki has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
fphilipe has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
hiroaki has joined #ruby
tdy has joined #ruby
conta has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jordanm has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 258 seconds]
reber has joined #ruby
fphilipe has joined #ruby
jordanm has joined #ruby
TomyWork has joined #ruby
haxx0r has joined #ruby
<haxx0r> 5cd3bcfc9d99100004866a79
ricekrispie2 has joined #ruby
ricekrispie has quit [Ping timeout: 258 seconds]
Inline has quit [Quit: Leaving]
conta has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
conta has joined #ruby
za1b1tsu has joined #ruby
geonaumov has joined #ruby
jordanm has quit [Ping timeout: 252 seconds]
hightower2 has quit [Ping timeout: 258 seconds]
ffl^ has joined #ruby
marmotini_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
hiroaki has quit [Remote host closed the connection]
jordanm has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
andikr has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
houhoulis has quit [Remote host closed the connection]
trebor8 has joined #ruby
fphilipe has joined #ruby
haxx0r has quit [Remote host closed the connection]
clemens3 has joined #ruby
lele` has quit [Ping timeout: 264 seconds]
lele has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
kyrylo has joined #ruby
yqt has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
Ai9zO5AP has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
_joes_ has joined #ruby
esrse has joined #ruby
Momentum has quit [Ping timeout: 246 seconds]
cd has quit [Quit: cd]
conta has quit [Ping timeout: 245 seconds]
jefffrails35 has joined #ruby
conta has joined #ruby
stan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Momentum has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
ta has joined #ruby
_joes_ has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
waheedi has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
stan_ has joined #ruby
Jonopoly has joined #ruby
conta has quit [Ping timeout: 252 seconds]
geonaumov has quit [Quit: Bye Bye]
DarthGandalf has quit [Quit: Bye]
DarthGandalf has joined #ruby
ellcs has joined #ruby
laaron has quit [Remote host closed the connection]
_joes_ has quit [Quit: _joes_]
laaron has joined #ruby
lxsameer has joined #ruby
jenrzzz has joined #ruby
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
contradictioned has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
conta has joined #ruby
<Jonopoly> for threads
<Jonopoly> what is the join doing? starting it?
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Jonopoly: waiting on it
<havenwood> Jonopoly: blocking until the thread finishes
<Jonopoly> oh okay
<Jonopoly> ah wait... so that means if i do a new thread it will run
<havenwood> Jonopoly: yes
<Jonopoly> and me doing thread.join means wait here until thread has finished
<Jonopoly> oh okay
<Jonopoly> That's more impressive than i thought!
conta has quit [Ping timeout: 268 seconds]
tobiasvl has quit [Quit: Fedora 30]
za1b1tsu has quit [Read error: Connection reset by peer]
BTRE has quit [Ping timeout: 246 seconds]
altigraph has quit [Ping timeout: 255 seconds]
n13z has quit [Quit: leaving]
BTRE has joined #ruby
timeless has quit [Ping timeout: 258 seconds]
mjacob has quit [Ping timeout: 258 seconds]
mjacob has joined #ruby
timeless has joined #ruby
kapil____ has joined #ruby
apparition has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Quit: AJA4350]
AJA4350 has joined #ruby
ta_ has quit [Quit: Bye!]
Swyper has joined #ruby
conta has joined #ruby
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 245 seconds]
esrse has quit [Ping timeout: 244 seconds]
jameser has quit [Ping timeout: 252 seconds]
jameser_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
woodruffw has quit [Ping timeout: 268 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
ellcs has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
jenrzzz has quit [Ping timeout: 246 seconds]
kapil____ is now known as kapil_
laaron has joined #ruby
kyrylo has joined #ruby
kapil_ is now known as kapilp
n13z has joined #ruby
Swyper has quit [Remote host closed the connection]
ldnunes has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
twoone has joined #ruby
marmotini_ has quit [Remote host closed the connection]
pwillard_ is now known as pwillard
AlHafoudh has joined #ruby
clemens3_ has joined #ruby
clemens3 has quit [Ping timeout: 268 seconds]
Guestss1 has joined #ruby
GodFather has joined #ruby
Guestss1 has quit [Excess Flood]
Guestss1 has joined #ruby
Guestss1 has quit [Max SendQ exceeded]
Guestss1 has joined #ruby
Guestss1 has quit [Max SendQ exceeded]
GodFather_ has joined #ruby
Guestss1 has joined #ruby
Guestss1 has quit [Max SendQ exceeded]
waheedi has quit [Quit: waheedi]
Guestss1 has joined #ruby
Guestss1 has quit [Max SendQ exceeded]
Squeeeez has left #ruby ["%IRC-I-USRLFT, User left channel"]
reber__ has joined #ruby
AlHafoudh has quit [Ping timeout: 244 seconds]
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
ldnunes has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
agent_white has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
_sfiguser has joined #ruby
<_sfiguser> hello all guys i wanted to learn some new programming language and was considering ruby... is it still viable in 2019? i wanted to do some network programming...
Inline has joined #ruby
pupsikov has joined #ruby
<_sfiguser> is it viable in 2019? or is it a dying language?
<Zarthus> it's not primetime, but it still works well *shrug*
<Jonopoly> im learning it now for work
<Jonopoly> It's easier to read than python
<Jonopoly> _sfiguser: I think ruby&rails will be worth learning
za1b1tsu has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
frem has joined #ruby
reber__ has quit [Remote host closed the connection]
conta has quit [Ping timeout: 248 seconds]
FrankDW has joined #ruby
TomyWork has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
ellcs has joined #ruby
nadir has joined #ruby
zacts has joined #ruby
jameser has joined #ruby
jameser_ has quit [Ping timeout: 268 seconds]
<Bish> i disagree with the rails part
<Bish> rails was never worth learning, ruby is
<Bish> _sfiguser: what do you mean by saying network programming?
<Bish> ruby is bad with threads, as long as it is not IO-only
<Bish> so depending on your usecase ruby could be bad
<t3hyoshi> I don't think Rails is good to learn as a newcomer to Ruby. If you want to make simple sites, start with Sinatra before jumping into Rails.
<Bish> or stay with sinatra/roda :p
<Bish> but i have no clue what "network programming" is
<Bish> routing tcp packages?
<adam12> To be fair, there is a bunch of work going on to improve Ruby for networking. The async-* packages and lightweight fibers being one.
zacts has quit [Quit: WeeChat 2.4]
<Bish> i think ruby-code-style doesn't really fit asynchronous programming
<Bish> i always cringe when i see on_event { ... } stuff in ruby
<_sfiguser> Bish, crafting packets
<_sfiguser> ethernet frames 802.111
<_sfiguser> ethernet frames 802.11
<_sfiguser> and tcp sockets and stuff like that
<Bish> oh ruby is good for that
<Bish> that's the best thing about ruby, it's super high, and crafting "strings"/buffers with it is great
<Bish> >> "\x19\x91\x12\x83".unpack("L+")
<ruby[bot]> Bish: # => [2199032089] (https://eval.in/1104754)
<Bish> love shit like that
<Bish> the ruby-elf package or rubyelf gem don't know handels nicely with binary stuff
ellcs has quit [Ping timeout: 248 seconds]
fphilipe has quit [Ping timeout: 245 seconds]
apparition has quit [Quit: Bye]
ua_ has quit [Excess Flood]
ua_ has joined #ruby
<pwillard> _sfiguser: Take a look at AsciiDoctor-pdf for an example of really cool "current" stuff being done with ruby. I use it to write all my documentation now.
ellcs has joined #ruby
tdy has joined #ruby
ua_ has quit [Excess Flood]
waheedi has joined #ruby
AlHafoudh has joined #ruby
jenrzzz has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
renich has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
ellcs has quit [Ping timeout: 252 seconds]
yqt has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
alem0lars has joined #ruby
<Jonopoly> why is ruby not good for multithreading?
tdy has quit [Ping timeout: 255 seconds]
buckworst has joined #ruby
<ytti> in MRI implementation the threads wont run in parallel
buckworst has quit [Max SendQ exceeded]
<ytti> due to global lock
<ytti> in some other implementation they may
buckworst has joined #ruby
buckworst has quit [Max SendQ exceeded]
buckworst has joined #ruby
buckworst has quit [Max SendQ exceeded]
buckworst has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
cd has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
clemens3_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
dellavg_ has joined #ruby
laaron has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 258 seconds]
clemens3 has joined #ruby
laaron has joined #ruby
ua has joined #ruby
renich has quit [Quit: renich]
renich has joined #ruby
tdy has joined #ruby
renich has quit [Client Quit]
twoone has left #ruby [#ruby]
jameser has quit [Ping timeout: 268 seconds]
polishdub has joined #ruby
haengma has joined #ruby
haengma has quit [Remote host closed the connection]
rhuang_ has joined #ruby
haengma has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
duderonomy has joined #ruby
gix has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rhuang_ has quit [Remote host closed the connection]
rhuang_ has joined #ruby
doodlebug has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
skryking has joined #ruby
rhuang has joined #ruby
rhuang_ has quit [Remote host closed the connection]
stryek has joined #ruby
budonyc has joined #ruby
pupsikov has joined #ruby
jenrzzz has joined #ruby
tdy has joined #ruby
za1b1tsu has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
ebbflowgo has joined #ruby
skryking has quit [Quit: Leaving]
mochiyoda has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
AlHafoudh has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
ramfjord has joined #ruby
SeepingN has joined #ruby
zacts has joined #ruby
tdy has joined #ruby
fphilipe has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
jmcgnh has quit [Ping timeout: 255 seconds]
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
tdy has quit [Ping timeout: 248 seconds]
mochiyoda has joined #ruby
clemens3 has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: WeeChat 2.4]
gix has quit [Ping timeout: 268 seconds]
AlHafoudh has joined #ruby
cosmouser has joined #ruby
twoone has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
jameser_ has joined #ruby
jmcgnh has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
gix has joined #ruby
jameser has quit [Ping timeout: 255 seconds]
cthulchu_ has joined #ruby
jenrzzz has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cthu| has quit [Ping timeout: 246 seconds]
alem0lars has quit [Ping timeout: 255 seconds]
mochiyoda has quit [Quit: Konversation terminated!]
mochiyoda has joined #ruby
ElF3rn4 has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
AlHafoudh has quit [Ping timeout: 252 seconds]
sauvin has quit [Read error: Connection reset by peer]
nadir has quit [Quit: Connection closed for inactivity]
Dbugger has joined #ruby
AlHafoudh has joined #ruby
za1b1tsu has quit [Ping timeout: 258 seconds]
Xiti has quit [Quit: Xiti]
tdy has joined #ruby
Xiti has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
budonyc has quit [Quit: Leaving]
anoob has joined #ruby
<anoob> Is it possible to unlock a sidekiq unique job only if it goes to the "dead queue"? My jobs are unlocked when they fail and I need them to retry ...
Dbugger has quit [Quit: Leaving]
cnsvc has joined #ruby
jobewan has joined #ruby
za1b1tsu has joined #ruby
mikecmpbll has joined #ruby
weteamsteve has joined #ruby
cnsvc has quit [Quit: WeeChat 2.4]
cnsvc has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
cnsvc has left #ruby ["WeeChat 2.4"]
cnsvc has joined #ruby
cnsvc has quit [Quit: WeeChat 2.4]
cnsvc has joined #ruby
cnsvc has quit [Quit: WeeChat 2.4]
cnsvc has joined #ruby
jmcgnh has joined #ruby
wilbert has joined #ruby
ramfjord_ has quit [Ping timeout: 258 seconds]
buckworst has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
zapata_ is now known as zapata
ramfjord has joined #ruby
anoob has quit [Ping timeout: 256 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
reber has quit [Remote host closed the connection]
robotcars has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
agent_white has joined #ruby
jcalla has quit [Quit: Leaving]
jmcgnh has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
cnsvc has joined #ruby
dsmythe_ has joined #ruby
doodlebug has quit [Ping timeout: 248 seconds]
dsmythe has quit [Ping timeout: 255 seconds]
dsmythe has joined #ruby
doodleb23 has joined #ruby
dsmythe_ has quit [Ping timeout: 248 seconds]
dsmythe has quit [Read error: Connection reset by peer]
fphilipe has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
dsmythe has joined #ruby
doodleb23 has quit [Read error: Connection reset by peer]
baiyang has joined #ruby
doodlebug has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
ramfjord has joined #ruby
fphilipe has joined #ruby
<havenwood> TruffleRuby landed their first release, version 19.0.0!
<havenwood> rvm get head && rvm install truffleruby
<havenwood> ruby-install --latest truffleruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
rhuang_ has joined #ruby
rhuang has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
jhill has quit [Ping timeout: 258 seconds]
jhill has joined #ruby
twoone has quit []
fphilipe_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fphilipe has quit [Ping timeout: 258 seconds]
doodlebug has quit [Ping timeout: 248 seconds]
doodleb84 has joined #ruby
ur5us has joined #ruby
zacts has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
zacts has quit [Quit: WeeChat 2.4]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
baiyang has left #ruby [#ruby]
cthulchu_ has quit [Ping timeout: 255 seconds]
fphilipe_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
DTZUZO has quit [Ping timeout: 258 seconds]
DTZUZO has joined #ruby
ramfjord has joined #ruby
ellcs has joined #ruby
jenrzzz has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
wilbert has quit [Ping timeout: 245 seconds]
jmcgnh has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
tyraeltong has joined #ruby
tyraeltong has quit [Client Quit]
fphilipe_ has joined #ruby
sameerynho has joined #ruby
jenrzzz has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Ping timeout: 246 seconds]
doodleb84 has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 252 seconds]
Fernando-Basso has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
nowhere_man has joined #ruby
ellcs has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
haengma has quit [Remote host closed the connection]
waheedi has quit [Quit: waheedi]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
fphilipe_ has joined #ruby
sparc has quit [Ping timeout: 258 seconds]
haengma has joined #ruby
sparc has joined #ruby
uranoss has quit [Ping timeout: 258 seconds]
uranoss has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
rhuang has joined #ruby
rhuang_ has quit [Ping timeout: 245 seconds]
FrankDW has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
FrankDW has joined #ruby
AJA4350 has joined #ruby
doodlebug has joined #ruby
jmcgnh has joined #ruby
doodlebug has quit [Max SendQ exceeded]
AlHafoudh has quit [Ping timeout: 244 seconds]
AlHafoudh has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
polishdub has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
ElF3rn4 has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
sameerynho has quit [Ping timeout: 245 seconds]
<SeepingN> 👏
ellcs has quit [Ping timeout: 248 seconds]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
jameser has joined #ruby
AlHafoudh has quit [Ping timeout: 246 seconds]
jameser_ has quit [Ping timeout: 248 seconds]
haengma has quit [Remote host closed the connection]
jmcgnh has quit [Read error: Connection reset by peer]
haengma has joined #ruby
haengma has quit [Remote host closed the connection]
doodlebug has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
doodlebug has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 255 seconds]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
symm- has joined #ruby
<symm-> hi, can I have nested modules and within them module functions that I can call like `Foo.Bar.blah()`?
<phaul> you can nest modules, but you have to resolve nesting with ::
<symm-> I found that it's possible to do `Foo::Bar.blah()` but the cognitive dissonance is killing me
<phaul> ok you found the way
<symm-> ah I see, so that's the only way?
stryek has quit [Quit: Connection closed for inactivity]
<phaul> you could do :: on the method too, so Foo::Bar::blah works, but Dont. This is the acceted way.
haengma has joined #ruby
doodlebug has joined #ruby
<phaul> modules and methods are different, it's fine to separate them differently - as far as dissonance is concerned
doodlebug has quit [Max SendQ exceeded]
<havenwood> symm-: You *can* set it up like you say you'd like.
<havenwood> symm-: The Ruby convention is :: separator between modules and classes and . for method calls.
<symm-> I see
ellcs has joined #ruby
<symm-> that seems reasonable actually
<havenwood> symm-: Here's an example of the interface you want: https://gist.github.com/havenwood/9ae14630c79031ed6f4c44d14c9a2578
<phaul> calling a method on a receiver, and resolving a constant in module nesting are fundamentally different things
<symm-> havenwood: what even...
_sfiguser has quit [Remote host closed the connection]
<phaul> upper case methods work too. but..
<havenwood> symm-: Yeah, use the Ruby convention :P
<symm-> haha I will
<symm-> I'm not ready fot this yet
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
haengma has quit [Remote host closed the connection]
haengma has joined #ruby
nadir has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
jobewan has quit [Ping timeout: 244 seconds]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
ebbflowgo has quit [Quit: ebbflowgo]
kapilp has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 258 seconds]
haengma has quit [Remote host closed the connection]
<symm-> just to confirm: is saying `def self.method` equivalent to `def ModuleName.method` in a module?
kyrylo has quit [Ping timeout: 258 seconds]
AlHafoudh has joined #ruby
<phaul> yes. or even better def self.method
<phaul> as self is ModuleName in the Module context
<baweaver> havenwood loves them some modiule_method
haengma has joined #ruby
haengma has quit [Remote host closed the connection]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
frem has quit [Quit: Connection closed for inactivity]
<phaul> ah. it's true what I said but didn't really make sense, so the short answer is yes you were right with that symm-
Fernando-Basso has quit [Remote host closed the connection]
<symm-> thank you:)
haengma has joined #ruby
jenrzzz has joined #ruby
rhuang has quit [Ping timeout: 246 seconds]
rhuang has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]