dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
petru has left #cinch ["WeeChat 1.2-dev"]
unknownloner has joined #cinch
<unknownloner> Hey all! I'm having a problem and I feel like this MIGHT be more of a ruby question than a cinch-specific question, but if anyone can help out that'd be awesome
<unknownloner> http://pastie.org/10112626 line 10 sets @count_timer, so line 22 should be able to use it right?
<dominikh> line 10 is on class level, line 22 is on instance level
<unknownloner> ah alright
<unknownloner> what'd be the best way to create a timer at the instance level which doesn't auto-start when it's created?
<dominikh> (http://sprunge.us/YiZJ for the difference)
<unknownloner> just directly use Timer.new ?
<dominikh> you can use Timer.new, you can use the Timer helper, or you can overwrite #initialize
<dominikh> using the Timer helper seems the most sensible
<unknownloner> problem is that calls timer.start automatically
<unknownloner> and I need it to not be started when it's created
<dominikh> a) you can use Timer in a method b) it takes the exact same options as timer
<dominikh> so yous hould know how not to auto-start it
<unknownloner> yeah that's what I thought too until I checked the source code
<unknownloner> but setting :start_automatically to false doesn't actually stop Timer from starting the timer
<unknownloner> it just stops it from re-starting the timer on connect
<dominikh> fair enough. still quite simple to work around
<unknownloner> indeed
<dominikh> http://sprunge.us/cONh or something like that
<unknownloner> thanks for the help! I figured my problem would be a ruby thing, since I'm still a little fuzzy on ruby and variable scope
<dominikh> no problem
bosma has joined #cinch
bosma is now known as bosma1957male
bosma1957male is now known as bosma
bosma has left #cinch ["Leaving"]
Rennex_ has joined #cinch
jesser has quit [Ping timeout: 252 seconds]
nickrw has quit [Ping timeout: 252 seconds]
Rennex has quit [Ping timeout: 252 seconds]
rikai has quit [Ping timeout: 252 seconds]
nickrw_ has joined #cinch
rikai has joined #cinch
jesser has joined #cinch
jesser_ has joined #cinch
jesser has quit [*.net *.split]
cats has quit [*.net *.split]
Snowstormer has joined #cinch
jesser_ is now known as jesser
sarkyniin has joined #cinch
Snowstormer is now known as cats
sarkyniin has quit [Ping timeout: 245 seconds]
sarkyniin has joined #cinch
sarkyniin has quit [Ping timeout: 256 seconds]
Rennex_ is now known as Rennex
sarkyniin has joined #cinch
postmodern has quit [Quit: Leaving]
sarkyniin has left #cinch ["Left"]
leftylin1 has joined #cinch
Gizmokid2010 has joined #cinch
leftylink has quit [Ping timeout: 246 seconds]
Gizmokid2005 has quit [Ping timeout: 246 seconds]
Gizmokid2010 is now known as Gizmokid2005
dominikh has quit [*.net *.split]
Saloun has quit [*.net *.split]
Paradox has quit [*.net *.split]
awkisopen has quit [*.net *.split]
waxjar has quit [*.net *.split]
ChasedSpade has quit [*.net *.split]
CM-Punk has quit [*.net *.split]
dominikh has joined #cinch
catepillar1 has joined #cinch
leftylin1 is now known as leftylink
catepillar has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 246 seconds]
v0n has joined #cinch
waxjar has joined #cinch
awkisopen has joined #cinch
ChasedSpade has joined #cinch
Paradox has joined #cinch
sand420 has joined #cinch
_whitelogger has joined #cinch
_whitelogger has joined #cinch
sarkyniin has joined #cinch
argoneus is now known as Maruinslun
Maruinslun is now known as argoneus
sarkyniin has quit [Ping timeout: 256 seconds]
Azure has quit [Ping timeout: 250 seconds]
sarkyniin has joined #cinch
sarkyniin has quit [Client Quit]
_djbkd has joined #cinch
_djbkd has quit [Remote host closed the connection]
postmodern has joined #cinch
postmodern has joined #cinch
postmodern has quit [Changing host]