FiXato has quit [Remote host closed the connection]
FiXato has joined #cinch
jhaals has joined #cinch
jhaals__ has joined #cinch
robotmay has joined #cinch
jhaals has quit [Ping timeout: 276 seconds]
jhaals__ is now known as jhaals
robotmay has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
robotmay has joined #cinch
robotmay has quit [Ping timeout: 256 seconds]
<Holy_Cow>
the "seen" example doesn't work for me. I tinkered with it and got it to work, but I thought I would mention it in here. I'm pretty new to ruby so it could just be me.
<Holy_Cow>
specifically line 19 complains that @users has not be defined
<waxjar>
that title sounds a tiny bit racist, lmao
<dominikh>
waxjar: no no, you mean patriotic
<waxjar>
tomato tomato
<waxjar>
hmm, that doesn't work on irc does it
<dominikh>
nope
<dominikh>
personally I can't say it even makes sense to me :P
<wunz>
oh right, i forget such things
<wunz>
okay, time to go get a haircut
<Holy_Cow>
dominikh: if you have time could you tell me how would you do it? My fix was to check that the instance variable was defined at line 19 and if it wasn't then initialize it.
<Holy_Cow>
What I would have liked to do was initialize it on object creation but I'm not sure how to do that in ruby.
<dominikh>
Holy_Cow: I'd probably do it by fixing a bug/regression in Cinch, otherwise your solution pretty much
<dominikh>
where "check and initialize" boils down to using ||=
<Holy_Cow>
ah i see. I did if defined? but that is much more concise. Thanks!
<dominikh>
:)
sacc91 has quit [Quit: sacc91]
sacc91 has joined #cinch
kith_ has joined #cinch
kith has quit [Ping timeout: 245 seconds]
robotmay has quit [Remote host closed the connection]
postmodern has joined #cinch
robotmay has joined #cinch
Holy_Cow has quit [Remote host closed the connection]