<Mon_Ouie>
Because classes are open and can have partial definitions at different places
<shevy>
Mon_Ouie has good explanations, straight to the point :)
s0ra_h is now known as sora_h
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
adambeynon has joined #ruby-lang
rushed has joined #ruby-lang
solars has joined #ruby-lang
tRAS_ has joined #ruby-lang
tRAS has quit [Ping timeout: 265 seconds]
ryez has joined #ruby-lang
sora_h is now known as s0ra_h
tRAS_ has quit [Ping timeout: 240 seconds]
tRAS has joined #ruby-lang
s0ra_h is now known as sora_h
<postmodern>
Mon_Ouie, true
<postmodern>
Mon_Ouie, could also provide source_locations (plural)
<postmodern>
Mon_Ouie, would be a lot safer than using self.inherited and parsing caller[0]
<shevy>
and nicer to read
robbyoconnor has quit [Ping timeout: 256 seconds]
gouthamvel has joined #ruby-lang
sandbags has joined #ruby-lang
benanne has joined #ruby-lang
<Mon_Ouie>
Sure, but what are the practical uses for finding the location of a class other than debugging?
soahccc` is now known as soahccc
stepnem has quit [Ping timeout: 252 seconds]
deobald__ has joined #ruby-lang
stepnem has joined #ruby-lang
<yxhuvud>
Mon_Ouie: self modifying code, the persistant way of doing it !
<yxhuvud>
ok, maybe not that practical
toretore has joined #ruby-lang
gouthamvel has quit [Ping timeout: 246 seconds]
dalekurt has quit [Quit: Zzz...]
Erlfin has joined #ruby-lang
<Erlfin>
Hi, somebody knows cinch?
<Mon_Ouie>
I'd assume dominikh does
<Mon_Ouie>
There's a #cinch channel too, I think
<Erlfin>
Yeah, but no one answer
<Erlfin>
I think it is a simple question, to send a message to a user you type: m.user.send "message", how do I send a command to the server or nickserv, for example /msg <user> <message>?
<Mon_Ouie>
NickServ is a regular user
<Mon_Ouie>
Well, not that regular maybe, but as far as you're concerned when you want to send a message to it, it is
<Erlfin>
but, m.user.send just replays in a pm to the user who send the message, but if the bot send it onconnect it don't work
srbartlett has joined #ruby-lang
hebz0rl has joined #ruby-lang
gouthamvel has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
ryez has quit [Ping timeout: 245 seconds]
ryez has joined #ruby-lang
zmack has joined #ruby-lang
L0rdShrek has joined #ruby-lang
Erlfin has left #ruby-lang [#ruby-lang]
deobald__ has quit [Ping timeout: 260 seconds]
jxie has quit [Quit: leaving]
<postmodern>
Mon_Ouie, i use the filename of a class when listing plugins, which are loaded via snake-cased filenames, and then mapped back to constants
<postmodern>
Mon_Ouie, normally i just take the class name, and underscore it using some big ugly Inflector
<postmodern>
Mon_Ouie, i realized that if we had Class#source_location, it would not be necessary to rely on an inflector
yannis has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
gouthamvel has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
RegEchse has joined #ruby-lang
tRAS has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
fromhet has joined #ruby-lang
bojicas has quit [Remote host closed the connection]
gouthamvel has joined #ruby-lang
yannis has quit [Read error: Connection timed out]
deobald__ has joined #ruby-lang
tRAS has quit [Ping timeout: 248 seconds]
tRAS has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
deobald__ has quit [Ping timeout: 260 seconds]
Hakon|mbp has joined #ruby-lang
akahn_ has joined #ruby-lang
tekin_ has joined #ruby-lang
cmaxw has joined #ruby-lang
woollyams has joined #ruby-lang
adambeynon has quit [*.net *.split]
nofxx has quit [*.net *.split]
b1rkh0ff has quit [*.net *.split]
jarib has quit [*.net *.split]
bfreeman has quit [*.net *.split]
cronin101 has quit [*.net *.split]
kith has quit [*.net *.split]
mistym has quit [*.net *.split]
Skif has quit [*.net *.split]
corecode_ has quit [*.net *.split]
DEac- has quit [*.net *.split]
zenspider has quit [*.net *.split]
thorncp has quit [*.net *.split]
dabradley has quit [*.net *.split]
youngin has quit [*.net *.split]
erikh has quit [*.net *.split]
alindeman has quit [*.net *.split]
ltd- has quit [*.net *.split]
mahlon has quit [*.net *.split]
erikh has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
Facefox has quit [Ping timeout: 244 seconds]
cmaxw has quit [Quit: cmaxw]
Facefox has joined #ruby-lang
yannis has joined #ruby-lang
mdstunthamster has joined #ruby-lang
mdstunthamster has quit [Client Quit]
dejongge has joined #ruby-lang
crackity_jones has quit [Ping timeout: 256 seconds]
alindeman has joined #ruby-lang
nofxx has joined #ruby-lang
adambeynon has joined #ruby-lang
jarib has joined #ruby-lang
cronin101 has joined #ruby-lang
bfreeman has joined #ruby-lang
kith has joined #ruby-lang
Skif has joined #ruby-lang
mistym has joined #ruby-lang
DEac- has joined #ruby-lang
zenspider has joined #ruby-lang
thorncp has joined #ruby-lang
corecode_ has joined #ruby-lang
dabradley has joined #ruby-lang
ltd- has joined #ruby-lang
mahlon has joined #ruby-lang
youngin has joined #ruby-lang
alindeman is now known as Guest51736
sandbags has quit [Remote host closed the connection]
fromhet has quit [Quit: fromhet]
postmodern has quit [Quit: Leaving]
fromhet has joined #ruby-lang
akahn_ has quit [Quit: ""]
akahn_ has joined #ruby-lang
<solars>
ch /j #mongodb
<solars>
sorry
akahn_ has quit [Quit: ""]
Cykey has joined #ruby-lang
robbyoconnor has joined #ruby-lang
yannis has quit [Ping timeout: 245 seconds]
tRAS has quit [Ping timeout: 248 seconds]
gasbakid has quit [Read error: Connection reset by peer]
hebz0rl has quit [Quit: Verlassend]
cmaxw has joined #ruby-lang
shevy2 has joined #ruby-lang
imperator has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 260 seconds]
hebz0rl has joined #ruby-lang
seanstickle has joined #ruby-lang
cmaxw has quit [Quit: cmaxw]
shevy2 has left #ruby-lang ["I'll be back ... maybe"]
sepp2k has quit [Read error: Connection reset by peer]
TheHunter_1039 has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
cmaxw has joined #ruby-lang
deobald__ has joined #ruby-lang
fromhet has quit [Quit: fromhet]
imperator has quit [Quit: This computer has gone to sleep]
cmaxw has quit [Quit: cmaxw]
Hakon|mbp has quit [Quit: Leaving...]
Hakon|mbp has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
cmaxw has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
zz_wasnotrice is now known as wasnotrice
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
tbuehlmann has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
imperator has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
tRAS has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
cmaxw has quit [Quit: cmaxw]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
ahs3- has joined #ruby-lang
ahs3- has quit [Client Quit]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
<Defusal>
but im also most definitely not an american :)
<imperator>
but some call it....Tim
<seanstickle>
Ah, of course
<Defusal>
im sure various places
<seanstickle>
Taiwanese
<Defusal>
i am South African
<seanstickle>
Yeah, that too
<seanstickle>
Brits, Asian Brits, and Boer Brits
<imperator>
wouldn't that be...Dutch?
<Defusal>
that would be more accurate
<Defusal>
but i am most certainly not dutch
<imperator>
how close are afrikaans and dutch? can someone from the netherlands understand you? and vice versa?
<imperator>
just curious
jxie has joined #ruby-lang
cirwim has joined #ruby-lang
<Defusal>
reasonably close, but still relatively different
cirwim has quit [Client Quit]
<Defusal>
i hardly ever speak afrikaans personally though, so it is not my best language :P
<Defusal>
i speak far better ruby
<Defusal>
s/hardly ever/almost never
<imperator>
oh? is english the main language now?
<Defusal>
now? lol
<Defusal>
it has been all my life
<Defusal>
but it would depend on where you live and are
<Defusal>
there are areas that speak a lot of different languages
<Defusal>
especially where a lot of africans live
<Defusal>
but i dont go to such place
<Defusal>
places*
sush24 has joined #ruby-lang
<Defusal>
im just happy as long as i've got my 10Mbps DSL, hehe
<imperator>
oh, i guess i thought afrikaans was the "main" language, and that english was secondary, guess i don't know SA that well :)
<Defusal>
yeah well, don't feel bad, you still probably know more than 99% of people, most people are terribly clueless about the rest of the world, especially americans (no offence intended)
<imperator>
yeah, well, i saw Breaker Morant, Lethal Weapon III and listen to Peter Gabriel, so I'm somewhat of an expert on the subject :-P
<Defusal>
hahaha
woollyams has quit [Ping timeout: 244 seconds]
deobald__ has quit [Ping timeout: 260 seconds]
tomb__ has left #ruby-lang [#ruby-lang]
tomb_ has joined #ruby-lang
woollyams has joined #ruby-lang
tRAS has quit [Ping timeout: 244 seconds]
zmack has quit [Remote host closed the connection]
dejongge has quit [Ping timeout: 252 seconds]
tRAS has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
ryanf has joined #ruby-lang
kyrylo_ has joined #ruby-lang
kyrylo_ has quit [Changing host]
kyrylo_ has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
ryez has quit [Ping timeout: 245 seconds]
imperator has left #ruby-lang ["Leaving"]
zz_wasnotrice is now known as wasnotrice
ryanf has quit [Ping timeout: 244 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
<asahi>
if I have the statement (x!=0 and 5/x > 1), does the 5/x > 1 get evaluated if x!=0 is false? IIRC it doesn't
<seanstickle>
It does not.
<sush24>
noob here…How do I make a method name like "foo(arg).bar". I know it's nested functions but if I nest the functions, the function in the second level is not being recognized (undefined method)
<seanstickle>
asahi: but be careful with "and"; prefer &&
<asahi>
seanstickle: why is && preferred?
<seanstickle>
asahi: do you know the difference?
<seanstickle>
asahi: between "and" and "&&" ?
<seanstickle>
If you don't, that's why.
<asahi>
nope I don't
areil has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
thone has joined #ruby-lang
<asahi>
i'd love to be enlightened ;-)
gregf has joined #ruby-lang
<asahi>
ah it's precedence. okay
<seanstickle>
:)
rippa has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
gouthamvel has quit [Read error: Operation timed out]
tRAS has joined #ruby-lang
rushed has quit [Quit: rushed]
wallerdev has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
gouthamvel has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
lsegal has joined #ruby-lang
gouthamvel has quit [Read error: Connection reset by peer]
wasnotrice is now known as zz_wasnotrice
bojicas has joined #ruby-lang
sepp2k has joined #ruby-lang
hebz0rl has quit [Quit: Verlassend]
ryanf has quit [Ping timeout: 244 seconds]
tomzx has joined #ruby-lang
<ddfreyne>
Bah. weird issue. Somebody feeling like sharing a piece of their brain with me?
<ddfreyne>
then I get a TypeError: can't convert nil into String
ryanf has joined #ruby-lang
<ddfreyne>
Nevermind. Half of the time it works, half of the time it doesn’t… the error is elsewhere
wallerdev has joined #ruby-lang
gouthamvel has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
ryanf has quit [Ping timeout: 265 seconds]
fromhet has joined #ruby-lang
fromhet has quit [Quit: fromhet]
fromhet has joined #ruby-lang
Go_ has joined #ruby-lang
Go__ has joined #ruby-lang
Go__ has quit [Client Quit]
Go_ has quit [Client Quit]
b1rkh0ff has quit [Ping timeout: 244 seconds]
Hakon|mbp has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
igotnolegs has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
havenn has quit [Remote host closed the connection]
kain has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
slyphon has joined #ruby-lang
Weems2 has joined #ruby-lang
<kyrylo_>
seanstickle, the author of zlib told me that the correct pronunciation is "zee-lib".
<seanstickle>
kyrylo_: I already knew that
<seanstickle>
kyrylo_: tell the South African guy
<seanstickle>
:D
<kyrylo_>
:P
kyrylo_ is now known as kyrylo
Weems has quit [Ping timeout: 256 seconds]
adambeynon has quit [Quit: adambeynon]
imperator has joined #ruby-lang
fromhet has quit [Quit: fromhet]
Cykey has quit [Quit: Computer has gone to sleep.]
gregf has quit [Quit: WeeChat 0.3.7]
kaspernj has quit [Ping timeout: 246 seconds]
gregf has joined #ruby-lang
kaspernj has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
erpuds has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
perryh is now known as perryh_away
gregmoreno has joined #ruby-lang
gregmore_ has quit [Ping timeout: 276 seconds]
farmer has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
Cykey has joined #ruby-lang
Jay_Levitt has left #ruby-lang [#ruby-lang]
nofxx has quit [Quit: Leaving]
t4nk556 has joined #ruby-lang
rand1374 has joined #ruby-lang
gsav has joined #ruby-lang
<soahccc>
Hmm wasn't there a way to define variables with the result of a block? something like @foo ||= do ... end I'm sure I saw that somewhere working
<Mon_Ouie>
proc { }.call
<Mon_Ouie>
I don't see a point in doing that though
rand1374 has left #ruby-lang [#ruby-lang]
<soahccc>
Mon_Ouie: I like this because you can group it a bit better imho
imperator has quit [Quit: This computer has gone to sleep]
dalekurt has joined #ruby-lang
yannis has joined #ruby-lang
Loei has joined #ruby-lang
Cykey has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
Loei has quit [Ping timeout: 245 seconds]
hackeron has quit [Read error: Connection reset by peer]
M4g1c5t0rM has quit [Remote host closed the connection]
<TTilus>
soahccc: @foo ||= begin; ...; end
<TTilus>
soahccc: but i have the same doubts than Mon_Ouie
<TTilus>
soahccc: you honestly are better off having a name tagged on that block
<soahccc>
TTilus: I will use it carefully... It was a hash generation based on multiple values... So in this case it would improve readability (I could create a method but this is overkill in this case)
<TTilus>
soahccc: method is never overkill in my books
fromhet has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<samuelkadolph>
There is @foo ||= begin; 1; end
cmaxw has joined #ruby-lang
Cykey has joined #ruby-lang
cmaxw has quit [Client Quit]
cmaxw has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
jarib has quit [Excess Flood]
Hakon|mbp has quit [Read error: Connection reset by peer]
jarib has joined #ruby-lang
mattonrails has joined #ruby-lang
yxhuvud has quit [Read error: Connection reset by peer]
stamina has quit [Quit: Lost terminal]
* Defusal
is tripping out to: Zinx - Articulator (Ironstein Rmx) [1319:48m/00:00m/96Kbps]
* Defusal
is tripping out to: Zinx - Articulator (Ironstein Rmx) [1319:49m/00:00m/96Kbps]
<Defusal>
that was definitely not the right hotkey :(
kaspernj has quit [Ping timeout: 246 seconds]
<yorickpeterse>
Why is formatting even allowed in this channel?
<yorickpeterse>
That's screaming for abuse
krz has quit [Quit: krz]
krz has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
mattonrails has quit [Remote host closed the connection]
<Defusal>
im not sure, i thought colour was blocked by default on freenode
<yorickpeterse>
Nope
<yorickpeterse>
Needs +c if I'm not mistaken
pabloh has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
srbaker has joined #ruby-lang
<Defusal>
yes, that sounds right, but i think channels are +c when registered on this network yorickpeterse
<S1kx>
is twitter/cassandra the new repo for the gem that was previously called 'fauna'?
<yorickpeterse>
Defusal: well, this channel is registered
<Defusal>
indeed, which makes me wonder why the mode would have quite possibly been removed
<yorickpeterse>
drbrain: could you +c the channel again? Prevents people from abusing IRC markup
srbaker has quit [Quit: Computer has gone to sleep.]