<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.