ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
petercooper has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
mikeric has quit [Quit: mikeric]
harukomoto has quit [Ping timeout: 244 seconds]
dalekurt has joined #ruby-lang
igotnolegs has joined #ruby-lang
havenn has joined #ruby-lang
harukomoto has joined #ruby-lang
kaspernj_ has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
kaspernj has quit [Ping timeout: 244 seconds]
benanne has quit [Quit: kbai]
savage- has joined #ruby-lang
Gaivs has joined #ruby-lang
kaspernj_ has quit [Ping timeout: 260 seconds]
<Gaivs> someone can say a library to parse a ruby file inside a ruby script?
<seanstickle> What?
<Gaivs> i.e. I wanna to dinamically get all the classes of a given file
<Gaivs> dynamically*
<Gaivs> Am I being clear enough?
b1rkh0ff has quit [Ping timeout: 244 seconds]
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
chimkan has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
urbanmonk has joined #ruby-lang
urbanmonk has quit [Client Quit]
mikeric has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
arooni-mobile has joined #ruby-lang
andrewhl has quit [Quit: andrewhl]
<postmodern> Gaivs, there's a hackish way
yannis has quit [Read error: Operation timed out]
<postmodern> Gaivs, http://pastie.org/3974286
<samuelkadolph> Gaivs: You can eval any string you want (or load a file). Knowing what constants they've defined might be tricky
yannis has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
<Gaivs> postmodern: guy, this snippet is better than a myriad of things I've been trying the last weeks
<Gaivs> postmodern: let's try this solution
<postmodern> Gaivs, however if you just want to load objects from a file
<postmodern> Gaivs, there's tons of libraries for that
<postmodern> Gaivs, or for loading plugins
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
r0bby_ has quit [Ping timeout: 246 seconds]
savage- has quit [Remote host closed the connection]
r0bby_ has joined #ruby-lang
harukomoto has quit [Ping timeout: 244 seconds]
<Gaivs> postmodern: woww.. very good this loaded library...
kaspernj has joined #ruby-lang
cantonic has joined #ruby-lang
<Gaivs> postmodern: very thank you man, you helped a lot
andrewhl has joined #ruby-lang
dankest has quit [Quit: Leaving...]
WillMarshall has joined #ruby-lang
r0bby_ is now known as robbyoconnor
mikeric has quit [Quit: mikeric]
deryldoucette has quit [Quit: Time To Go, So Sad!]
deryldoucette has joined #ruby-lang
yannis has quit [Quit: yannis]
perryh_away is now known as perryh
stardiviner has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
Gekz has joined #ruby-lang
setmeaway has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
dankest has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
setmeaway has quit [Client Quit]
M4g1c5t0rM has quit [Read error: Connection reset by peer]
tRAS has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
dankest has quit [Quit: Linkinus - http://linkinus.com]
seanstickle has quit [Quit: Nihil sub sole novum]
sora_h is now known as s0ra_h
Z33K|Lux has quit [Ping timeout: 265 seconds]
asahi has left #ruby-lang [#ruby-lang]
s0ra_h is now known as sora_h
setmeaway has joined #ruby-lang
kain has quit [Quit: Sto andando via]
andrewhl has quit [Quit: andrewhl]
andrewhl has joined #ruby-lang
Cykey has quit [Quit: Computer has gone to sleep.]
M4g1c5t0rM has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
cantonic has quit [Ping timeout: 256 seconds]
zz_wasnotrice is now known as wasnotrice
setmeaway has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
gix has quit [Ping timeout: 244 seconds]
rippa has joined #ruby-lang
gix has joined #ruby-lang
sora_h is now known as s0ra_h
tomb_ has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
M4g1c5t0rM has quit [Read error: Connection reset by peer]
s0ber has quit [Ping timeout: 256 seconds]
fayimora has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: macmartine]
s0ber has joined #ruby-lang
petercooper has joined #ruby-lang
rippa has quit [Ping timeout: 246 seconds]
fayimora has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
tomb__ has joined #ruby-lang
tomb_ has quit [Ping timeout: 245 seconds]
fayimora has quit [Client Quit]
chimkan has left #ruby-lang [#ruby-lang]
<postmodern> what's a quick way to expand a path, but prevent it from ../ escaping out of a given directory?
<postmodern> best i can think of is, File.expand_path(File.join('',path))
<postmodern> er
<postmodern> File.join(root_dir,File.expand_path(File.join('',path)))
dalekurt has quit [Read error: Connection reset by peer]
dalekurt has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Remote host closed the connection]
<hagabaka> so what do you want .. to do when it would go above the root_dir?
<erikh> chroot?
* erikh runs
ryanf has joined #ruby-lang
macmartine has joined #ruby-lang
<bnagy> erikh: security stuff like chroot is too advanced for postmodern
<erikh> hahahah
<postmodern> decided to just white-list the input a little :)
<erikh> yeah, fwiw I generally scan for ..
<erikh> it's dumb but works better than you might think
<bnagy> I just take no untrusted input :)
<erikh> ha.
<bnagy> screw trying to secure dynamic languages with a million encoding tricks
<postmodern> blacklisting is a path to failure
<bnagy> amen, brother
<bnagy> excet for antivirus - they seem to be making some money with it
<erikh> .. encoded poorly is not .. anymore
<postmodern> AV took the million of monkeys approach ;)
<erikh> it might look like .. but it is not ..
<postmodern> no offense to AV analysts
<erikh> which works for phishing tactics but not for the stated purpose
<erikh> anyhow
<postmodern> yeah unicode tricks
<postmodern> also i like rryspace.com
<erikh> there are other screwy things you can do with expand_path though like ~ and friends
<postmodern> that tricks needs a buzzword
<postmodern> letterjacking
<erikh> oh
<erikh> File.expand_path takes a second argument
<erikh> any guesses on what it does?
<erikh> :)
<bnagy> tetris?
<erikh> yes
<erikh> tetris.
<bnagy> \o/
<erikh> man and I thought I was punchy tonight
<erikh> ok back to diablo then
<postmodern> the second argument does too much
ryanf has quit [Ping timeout: 244 seconds]
<postmodern> equivalent of File.expand_path(File.join(arg2,arg1)) ?
<postmodern> erikh, oh also, what's the status of test.rubygems.org ?
<bnagy> erikh: that wouldn't stop traversal though, would it? It just sets the root
<postmodern> it doesn't restrict the resulting path to a sub-path of root
<bnagy> that would be a sweet option :P
<postmodern> tetris indeed
<postmodern> erikh, is it still necessary to use the .gemtest file for test.rubygems.org ?
<erikh> yes
<erikh> regarding the service itself, I want to hand it off
<erikh> I've got no time for it anymore
s0ra_h is now known as sora_h
<erikh> so if anyone's interested in making it shine, please let me know.
<postmodern> erikh, word
<postmodern> erikh, you should consider dropping the .gemtest file
<postmodern> erikh, one-less-dot-file
<erikh> well, the point there is for testing suites that do damage
<erikh> otherwise I agree entirely
<postmodern> ah yeah
<erikh> anyhow, diablo time. bbl!
ryanf has joined #ruby-lang
krz has joined #ruby-lang
macmartine has quit [Quit: macmartine]
wallerdev has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
harukomoto has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
andrewhl has quit [Quit: andrewhl]
wasnotrice is now known as zz_wasnotrice
harukomoto has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
M4g1c5t0rM has quit [Ping timeout: 246 seconds]
gsav has joined #ruby-lang
harukomoto has joined #ruby-lang
nofxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
dkubb|away is now known as dkubb
chimkan_ has joined #ruby-lang
chimkan_ has quit [Client Quit]
sepp2k has joined #ruby-lang
harukomoto has quit [Ping timeout: 252 seconds]
tRAS has joined #ruby-lang
harukomoto has joined #ruby-lang
yxhuvud has joined #ruby-lang
s0ra_h is now known as sora_h
tRAS has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
sora_h is now known as s0ra_h
ryanf has quit [Ping timeout: 248 seconds]
tRAS has quit [Ping timeout: 245 seconds]
tRAS has joined #ruby-lang
ridders24 has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
tRAS has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
ridders24 has quit [Ping timeout: 260 seconds]
s0ra_h is now known as sora_h
areil has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
flowerpot has quit [Quit: Ex-Chat]
gouthamvel has quit [Ping timeout: 252 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<postmodern> why does Module/Class have a source_location method
<postmodern> like Method?
tomzx has quit [Ping timeout: 246 seconds]
bojicas has joined #ruby-lang
sora_h is now known as s0ra_h
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
b1rkh0ff has joined #ruby-lang
<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]
dhruvasagar has joined #ruby-lang
Axsuul has quit [Ping timeout: 252 seconds]
Axsuul has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.7]
dalekurt has joined #ruby-lang
<kyrylo> How do you pronounce "zlib"?
<seanstickle> zee-lib
tekin_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wasnotrice is now known as zz_wasnotrice
<Defusal> zed-lib
<seanstickle> Crazy brits
* Defusal is not a brit
<seanstickle> Who else says zed?
<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 has joined #ruby-lang
virunga has joined #ruby-lang
sush24 has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<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> I have this ERB:
<ddfreyne> <%= (res = content_for(@items.find { |i| i.identifier == '/includee/' }, :blah) ; res) %>
<ddfreyne> which works
<ddfreyne> but if I replace it with the much more obvious, but functionally identical:
<ddfreyne> <%= content_for(@items.find { |i| i.identifier == '/includee/' }, :blah) %>
<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
mdstunthamster has joined #ruby-lang
gsav has quit [Ping timeout: 252 seconds]
mdstunthamster has quit [Quit: Linkinus - http://linkinus.com]
tRAS has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
tRAS has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
krz has joined #ruby-lang
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.]
t has joined #ruby-lang
frem_ has quit [Quit: Farewell!]
woollyams has quit [Ping timeout: 252 seconds]
t is now known as Guest86181
Cykey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
srbaker has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
fromhet has quit [Quit: fromhet]
Carnage\ has joined #ruby-lang
t4nk556 has quit [Ping timeout: 245 seconds]
Carnage\ has quit [Read error: Operation timed out]
Carnage\ has joined #ruby-lang
virunga has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
Carnage\ has quit []
cantonic has joined #ruby-lang
tr-808 has quit [Remote host closed the connection]
tr-808 has joined #ruby-lang
erpuds has quit [Quit: erpuds]
igotnolegs has joined #ruby-lang
postmodern has joined #ruby-lang
harukomoto has quit [Ping timeout: 244 seconds]
harukomoto has joined #ruby-lang
fukushim_ has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
cmaxw has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby-lang
macmartine has joined #ruby-lang
andrewhl has quit [Quit: andrewhl]
Andrew__ has joined #ruby-lang
srbartlett has joined #ruby-lang
fgomez has quit [Ping timeout: 245 seconds]
Andrew__ has left #ruby-lang [#ruby-lang]
andrewhl has joined #ruby-lang
Gaivs has quit []
Gaivs has joined #ruby-lang
cmaxw has joined #ruby-lang
cmaxw has quit [Read error: Connection reset by peer]
cmaxw has joined #ruby-lang
s0ra_h is now known as sora_h
woollyams has joined #ruby-lang
rue_XIV has joined #ruby-lang
rue has quit [Ping timeout: 260 seconds]
amerine has quit [Ping timeout: 260 seconds]
tdmackey has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
kain has quit [Quit: Sto andando via]
tdmackey has joined #ruby-lang
WillMarshall has joined #ruby-lang
fukushima has joined #ruby-lang
tonniaagesen has quit [Remote host closed the connection]
qpingu has joined #ruby-lang