adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
Inline has quit [Ping timeout: 264 seconds]
dohtem has joined #ruby
Skyfire has quit [Quit: brb]
Skyfire has joined #ruby
markong has quit [Ping timeout: 264 seconds]
pull has quit [Quit: Czesc]
goldfish has quit [Ping timeout: 260 seconds]
finstern1s has quit [Quit: leaving]
finsternis has joined #ruby
Guest97 has joined #ruby
<Guest97> hi
gr33n7007h has quit [Ping timeout: 264 seconds]
Guest97 has left #ruby [#ruby]
gr33n7007h has joined #ruby
swaggboi has quit [Ping timeout: 264 seconds]
swaggboi has joined #ruby
reset has quit [Quit: reset]
m3ow1606 has joined #ruby
Rounin has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
m3ow1606 has quit [Quit: m3ow1606]
BinaryVixen899 has quit [Read error: Connection reset by peer]
Skyfire has quit [Quit: brb broken config]
Skyfire has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
m3ow1606 has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
jetchisel has quit [Ping timeout: 264 seconds]
m3ow1606 has quit [Quit: m3ow1606]
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ollysmith has joined #ruby
Inline has joined #ruby
jpw has joined #ruby
bl4ckth0r has joined #ruby
jetchisel has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
markong has joined #ruby
gr33n7007h has joined #ruby
Rounin has joined #ruby
bl4ckth0r has quit [Ping timeout: 260 seconds]
bl4ckth0r has joined #ruby
asio has quit [Ping timeout: 246 seconds]
RougeR has joined #ruby
fercell has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
goepsilongo has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
goepsilongo has joined #ruby
roadie has joined #ruby
<nakilon> https://dpaste.org/qmBG/slim -- how do I fix this? the module only has to have the #pick method available
<nakilon> it should call the private method get_key that is also called when defining the module
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
<nakilon> "I have no idea what I'm doing" but this worked https://dpaste.org/wBz2/slim
<nakilon> for some reason you can't call the method immediately even if you've defined it in the same place, you have to call it outside of class<<self
roadie has quit [Ping timeout: 245 seconds]
Inline_ has joined #ruby
Inline has quit [Ping timeout: 245 seconds]
Inline_ has quit [Remote host closed the connection]
Inline has joined #ruby
roadie has joined #ruby
<adam12> nakilon: ruby version?
<havenwood> nakilon: Constants aren't nicer?
bl4ckth0r has quit [Ping timeout: 264 seconds]
dohtem has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
shuvarek has joined #ruby
roadie has joined #ruby
psb has quit [Ping timeout: 260 seconds]
psb has joined #ruby
markong has quit [Ping timeout: 245 seconds]
<nakilon> adam12 2.5
<nakilon> havenwood aren't constants accessible from outside? I don't need it, those two variables should not be used other than via the pick method
<adam12> private_constant :FOOBAR
<adam12> Interesting tho. I thought this was a bug but it doesn't work on 3.0 either.
<havenwood> nakilon: Constants don't mutate state when accessed, so Rubyists are less disciplined with restricting external access, but I do like using private_constant that adam12 suggests.
<havenwood> nakilon: Consider using a Singleton? If feels like you're meaning to initialize a single instance of state.
<havenwood> Upsides are it works nicely without getting weird and resistant to changes and clear where the initialization logic lives.
roadie` has joined #ruby
roadie has quit [Ping timeout: 264 seconds]
hammdist has quit [Quit: Ping timeout (120 seconds)]
hammdist has joined #ruby
Inline has quit [Ping timeout: 260 seconds]
Inline has joined #ruby
ur5us has joined #ruby
RougeR has quit [Quit: Leaving]
roadie` has quit [Ping timeout: 260 seconds]
jpw has quit [Remote host closed the connection]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 245 seconds]
michigan has joined #ruby
roadie` has joined #ruby
roadie` has quit [Remote host closed the connection]
roadie` has joined #ruby
markong has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
roadie` has joined #ruby
shiru has joined #ruby
shuvarek has quit [Ping timeout: 268 seconds]
waagrr has quit [Ping timeout: 260 seconds]
shiru has quit [Quit: leaving]
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
hammdist has quit [Quit: Client closed]
waagrr has joined #ruby
Inline has quit [Ping timeout: 246 seconds]
shuvarek has joined #ruby
roadie` has quit [Ping timeout: 260 seconds]
andrea[m]123 has joined #ruby
lunarkitty has joined #ruby
andrea[m]123 has left #ruby [#ruby]