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
bfreeman has quit [Quit: bfreeman]
sailias has joined #ruby-lang
dagobah has quit [Ping timeout: 246 seconds]
dagobah has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
kingCrawlerx has joined #ruby-lang
setmeaway has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
josh^ has joined #ruby-lang
Silas_ has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
snorkdude has joined #ruby-lang
havenn has joined #ruby-lang
pr0ton has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
banisterfiend has quit [Ping timeout: 252 seconds]
snorkdude has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
gsav has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby-lang
havenn has quit [Ping timeout: 240 seconds]
kain has quit [Ping timeout: 272 seconds]
jtoy has quit [Quit: jtoy]
gsav_ has joined #ruby-lang
andoyasushi_ has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
havenn has joined #ruby-lang
Nisstyre has joined #ruby-lang
lsegal has joined #ruby-lang
lianj has quit [Remote host closed the connection]
Nisstyre has quit [Excess Flood]
lianj has joined #ruby-lang
lianj has quit [Changing host]
lianj has joined #ruby-lang
guns has joined #ruby-lang
richardjortega has joined #ruby-lang
banisterfiend has joined #ruby-lang
sora_h has quit [Ping timeout: 248 seconds]
amaya_ has joined #ruby-lang
amaya_ has quit [Client Quit]
amaya_ has joined #ruby-lang
dous has quit [Remote host closed the connection]
Nisstyre has joined #ruby-lang
sora_h has joined #ruby-lang
snorkdude has joined #ruby-lang
richardjortega has quit [Quit: richardjortega]
richardjortega has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
richardjortega has quit [Read error: No route to host]
sepp2k1 has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
richardjortega has joined #ruby-lang
<crankharder> what's a good way to verify if a given executably is available in the current path?
<crankharder> *executable
<crankharder> in bash i could do something like... which git
<crankharder> not sure if that's such a great idea from ruby or not
weeb1e_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<rhizmoe> system('if test -x git')
<rhizmoe> actually: if text -x $(which git)
wpaulson has joined #ruby-lang
<rhizmoe> if `test -x $(which git)`
NOKAH has joined #ruby-lang
<rhizmoe> yadda yadda
<crankharder> `test -x $(which git)` => is "" for me. git is available
Hakon has quit [Ping timeout: 244 seconds]
tooky has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
Hakon has joined #ruby-lang
snorkdude has joined #ruby-lang
NOKAH has quit [Ping timeout: 240 seconds]
towski has quit [Remote host closed the connection]
<zenspider> rhizmoe: gem which
outoftime has joined #ruby-lang
bfreeman has joined #ruby-lang
outoftime has quit [Client Quit]
stardiviner has joined #ruby-lang
<zenspider> I don't see any point in ruby-which, considering rubygems has had that for forever
cardinal has joined #ruby-lang
lolzie has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<lolzie> Hi guys, just learned about alias :method1 :method2
<lolzie> Where in the docs is this docced?
<lolzie> I hate how at my current knowledge of ruby/its documentation that there are still features in the language which I can't find where they come from :/
<postmodern> lolzie, alias is an actual keyword in ruby
<postmodern> lolzie, alias_method does the same thing, but is an actual method
<lolzie> Cheers
<postmodern> lolzie, essentially alias makes a copy of the method, and assigns a new name to it
<postmodern> lolzie, so if you override the original method, the alias wont be changed
<lolzie> Ooh I see
<lolzie> That's kind of an unintuitive behaviour to me, considering it's meant to be an alias for the same thing
titaniumNoob_ has joined #ruby-lang
<lolzie> The overriding part not affecting the alias, that is
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby-lang
<banisterfiend> lolzie it's actually quite handy, as it allows you to easily decorate a method
<banisterfiend> lolzie steps are 1. alias it, 2. override original but adding new code but calling the alias
<lolzie> Hmm I see
<lolzie> Cheers guys :)
<banisterfiend> class A; def hello; puts "hi"; end; alias old_hello hello; def hello; puts "before"; old_hello; end; end; A.new.hello #=> "before, "hi"
<lolzie> Gawtcha!
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mistergibson has joined #ruby-lang
zmack has joined #ruby-lang
sailias has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
<mistergibson> With respect to String#encode, encoding options Hash : :replace and :fallback are exclusive - yes?
wpaulson has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
snorkdude has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
jackhammer2022 has joined #ruby-lang
banisterfiend has quit [Ping timeout: 276 seconds]
lolzie has quit [Quit: Page closed]
seanstickle has quit [Quit: seanstickle]
tooky has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
cardinal has quit [Ping timeout: 240 seconds]
micaeked has quit [Quit: WeeChat 0.3.8]
havenn has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
towski has joined #ruby-lang
snorkdude has joined #ruby-lang
huoxy has joined #ruby-lang
huoxy has left #ruby-lang [#ruby-lang]
ramonmaruko has quit [Ping timeout: 255 seconds]
andoyasushi_ has quit [Ping timeout: 272 seconds]
setmeaway has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zmack has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
ramonmaruko has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
coryf has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
stardiviner has joined #ruby-lang
coryf has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
titaniumNoob_ has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
countdigi has joined #ruby-lang
cardinal has joined #ruby-lang
wpaulson_ has joined #ruby-lang
tooky has joined #ruby-lang
p_np has quit [Quit: Leaving...]
wpaulson has quit [Ping timeout: 244 seconds]
wpaulson_ is now known as wpaulson
tooky has quit [Ping timeout: 276 seconds]
pr0ton has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
atsao has joined #ruby-lang
pr0ton has quit [Ping timeout: 276 seconds]
S1kx has quit [Ping timeout: 260 seconds]
andoyasushi_ has joined #ruby-lang
justinmc_ has joined #ruby-lang
<heftig> is it possible to have "gem cleanup" automatically reject uninstalls that would break deps?
snorkdude has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
goshakkk has joined #ruby-lang
<rue> Doesn’t it do that?
justinmc_ has quit [Remote host closed the connection]
<erikh> it asks
goshakkk has quit [Quit: Computer has gone to sleep.]
spuk has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
tonni has joined #ruby-lang
amaya_ has quit [Ping timeout: 248 seconds]
tooky has joined #ruby-lang
lianj has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
lianj has joined #ruby-lang
lianj has quit [Changing host]
lianj has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tooky has quit [Ping timeout: 276 seconds]
justinmcp has joined #ruby-lang
cardinal has quit [Remote host closed the connection]
amaya_ has joined #ruby-lang
andoyasushi_ has quit [Ping timeout: 252 seconds]
pr0ton has joined #ruby-lang
chendo has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
s0ber_ has joined #ruby-lang
s0ber has quit [Ping timeout: 260 seconds]
s0ber_ is now known as s0ber
yxhuvud has joined #ruby-lang
banisterfiend has joined #ruby-lang
josh^ has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 252 seconds]
josh^ has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
chendo_ has quit [Ping timeout: 244 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
chendo_ has joined #ruby-lang
andoyasushi_ has joined #ruby-lang
tooky has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tooky has quit [Ping timeout: 260 seconds]
jackhammer2022 has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 246 seconds]
andoyasushi has joined #ruby-lang
kitallis has joined #ruby-lang
andoyasushi_ has quit [Ping timeout: 264 seconds]
Fullmoon has joined #ruby-lang
stepnem has joined #ruby-lang
rue|w has joined #ruby-lang
Swimming_Bird has quit [Ping timeout: 240 seconds]
chimkan has joined #ruby-lang
tonni has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
adheblack has joined #ruby-lang
WillMarshall has joined #ruby-lang
tooky has joined #ruby-lang
nXqd has joined #ruby-lang
nXqd has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby-lang
adheblack has quit [Quit: Leaving]
banisterfiend has quit [Remote host closed the connection]
Swimming_Bird has joined #ruby-lang
dr_bob has joined #ruby-lang
spuk has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby-lang
rohit has joined #ruby-lang
Elico1 has joined #ruby-lang
Criztian has joined #ruby-lang
s1n4 has joined #ruby-lang
lun_ has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
chimkan has quit [Quit: chimkan]
justinmcp has joined #ruby-lang
kain has joined #ruby-lang
yxhuvud has quit [Ping timeout: 245 seconds]
dc5ala has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
jbsan has quit [Client Quit]
dhruvasagar has joined #ruby-lang
robbyoconnor has joined #ruby-lang
mistergibson has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Read error: No route to host]
lolmaus has joined #ruby-lang
CoverSlide has joined #ruby-lang
towski has quit [Remote host closed the connection]
Elico1 has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
mistergibson has joined #ruby-lang
workmad3 has joined #ruby-lang
justinmc_ has joined #ruby-lang
Elico1 has joined #ruby-lang
Madis has joined #ruby-lang
rhizmoe has quit [Ping timeout: 268 seconds]
rohit has quit [Ping timeout: 276 seconds]
justinmcp has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
rohit has joined #ruby-lang
<bnagy> hey, ffi q (sleepy over there)
rhizmoe has joined #ruby-lang
<bnagy> how do I make a Struct treat uints as little endian?
atsao has quit [Quit: Leaving...]
Elico1 has quit [Ping timeout: 240 seconds]
tooky has joined #ruby-lang
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 264 seconds]
Elico1 has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
Elico1 has quit [Client Quit]
Elico1 has joined #ruby-lang
Criztian_ has joined #ruby-lang
Elico1 has quit [Client Quit]
Criztian has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
Elico1 has joined #ruby-lang
justinmc_ has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
WillMarshall has quit [Quit: Computer has gone to sleep.]
cantonic_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
solars has joined #ruby-lang
jbsan has joined #ruby-lang
Elico1 has quit [Ping timeout: 260 seconds]
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
vmoravec_ has joined #ruby-lang
vmoravec_ has quit [Client Quit]
dous has quit [Ping timeout: 276 seconds]
Elico1 has joined #ruby-lang
vmoravec has quit [Remote host closed the connection]
<yorickpeterse> Morning
<erikh> yeah, I guess 12:45am counts as morning
znake has joined #ruby-lang
lolmaus has quit [Ping timeout: 252 seconds]
znake has quit [Remote host closed the connection]
<yorickpeterse> 09:45 for me
tonni has joined #ruby-lang
znake has joined #ruby-lang
lolmaus has joined #ruby-lang
Elico1 has quit [Ping timeout: 252 seconds]
Elico1 has joined #ruby-lang
icooba has joined #ruby-lang
jakob- has joined #ruby-lang
znake has quit [Ping timeout: 252 seconds]
Elico1 has quit [Ping timeout: 244 seconds]
jakob- has quit [Client Quit]
rohit has quit [Quit: Leaving]
Elico1 has joined #ruby-lang
kitallis has quit [Ping timeout: 246 seconds]
kitallis has joined #ruby-lang
qwerxy has quit [Quit: offski]
rolfb has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
robotmay has joined #ruby-lang
Elico1 has quit [Ping timeout: 260 seconds]
znake has joined #ruby-lang
Elico1 has joined #ruby-lang
znake has quit [Quit: znake]
pr0ton has quit [Ping timeout: 256 seconds]
hagabaka has quit [Read error: Connection reset by peer]
hagabaka has joined #ruby-lang
hagabaka has quit [Changing host]
hagabaka has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
toretore has joined #ruby-lang
Elico1 has quit [Ping timeout: 260 seconds]
<Mon_Ouie> bnagy: I think you'd need to to do the conversion manually, FFI most likely only uses native endianness
Elico1 has joined #ruby-lang
lolmaus has quit [Ping timeout: 252 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
banisterfiend has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby-lang
guns has quit [Read error: Connection reset by peer]
guns has joined #ruby-lang
guns is now known as Guest92858
Guest92858 has quit [Client Quit]
banisterfiend has joined #ruby-lang
Elico1 has quit [Ping timeout: 264 seconds]
<bnagy> lame
Elico1 has joined #ruby-lang
<bnagy> I found some google hints that suggested there was an 'order' method which switched the whole struct
znake has joined #ruby-lang
Elico1 has quit [Ping timeout: 248 seconds]
Elico1 has joined #ruby-lang
adambeynon has joined #ruby-lang
znake has quit [Quit: znake]
Elico1 has quit [Ping timeout: 240 seconds]
andoyasushi has quit [Ping timeout: 248 seconds]
Elico1 has joined #ruby-lang
meise has quit [Quit: leaving]
Elico1 has quit [Ping timeout: 240 seconds]
Elico1 has joined #ruby-lang
qwerxy has joined #ruby-lang
<rue|w> bnagy: It is what it is on the platform
Elico1 has quit [Ping timeout: 260 seconds]
<bnagy> rue|w: no, it's not
<bnagy> not when you use jruby on windows, anyway :)
<rue|w> JVM is the platform
<bnagy> ok well that's one way of looking at it
<bnagy> not a very useful one, but definitely valid :P
<bnagy> in any case, there are a lot of valid reasons to want to be able to set endian for structs
Elico1 has joined #ruby-lang
tjegels_ has joined #ruby-lang
<rue|w> Reasons, I’m sure, but kind of the whole point is that it‘s the native structure
<bnagy> except that it's not
<bnagy> I am running on windows. I do not have a windows structure
<bnagy> and even if everything were magically little endian, then I would want to parse a network packet or something
<rue|w> That’s because the JVM is a platform
dous has quit [Ping timeout: 276 seconds]
<rue|w> But you’ve always got htonl(3) and friends
<bnagy> which might actually be a useful point of view for everything but FFI, which, by definition, wraps binary libs
<Mon_Ouie> FFI doesn't seem like an ideal solution for parsing binary packet received from files/network
wallerdev has quit [Quit: wallerdev]
<bnagy> anyway, I'm not really interested in your opinion of the utility of being able to set endianness
<bnagy> it is supposed to be supported, I can't get it to work
<Mon_Ouie> You can't set endianness in a C struct definition either
mohamad has joined #ruby-lang
<bnagy> no but a C struct would actually use native fucking endian
<bnagy> this is a really tedious conversation
mohamad has quit [Remote host closed the connection]
<rue|w> The native endian on JVM is JVM’s endianness.
<rue|w> It is what it is
tjegels_ has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
Elico1 has quit [Ping timeout: 276 seconds]
tjegels has joined #ruby-lang
tjegels has left #ruby-lang [#ruby-lang]
zmack has joined #ruby-lang
nXqd has joined #ruby-lang
Elico1 has joined #ruby-lang
Elico1 has quit [Ping timeout: 276 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Guedes_out is now known as Guedes
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
seanstickle has joined #ruby-lang
p_np has joined #ruby-lang
p_np has quit [Client Quit]
MrOnFireMr has joined #ruby-lang
MrOnFireMr has quit [Remote host closed the connection]
mistergibson has quit [Remote host closed the connection]
mistergibson has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
runeb has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<zenspider> bnagy: ^^
<zenspider> http://news.ycombinator.com/item?id=3796378 some of the comments are really good too
* zenspider goes te bod
banisterfiend has quit [Read error: Connection reset by peer]
<zenspider> wow
* zenspider goes to bed... because obviously I need to
b3nt_pin has quit [Ping timeout: 240 seconds]
judofyr has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
banisterfiend has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
MrOnFireMr has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
amaya_ has quit [Ping timeout: 252 seconds]
kitallis has quit [Read error: Connection reset by peer]
kitallis has joined #ruby-lang
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
mytrile has joined #ruby-lang
justinmcp has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
Criztian_ has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
Elico1 has joined #ruby-lang
codewrangler has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has quit [Client Quit]
zmack has quit [Remote host closed the connection]
rohit has joined #ruby-lang
bryancp has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
seanstickle has joined #ruby-lang
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
seanstickle has quit [Client Quit]
amaya_ has joined #ruby-lang
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
goshakkk has joined #ruby-lang
tooky has quit [Remote host closed the connection]
kitallisii has joined #ruby-lang
kitallis has quit [Ping timeout: 255 seconds]
m3nd3s has joined #ruby-lang
sistrall has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
m3nd3s has quit [Ping timeout: 272 seconds]
urbanmonk has joined #ruby-lang
kvirani has joined #ruby-lang
m3nd3s_ has quit [Client Quit]
jxie has quit [Quit: leaving]
mohamad has joined #ruby-lang
pitty has joined #ruby-lang
rippa has joined #ruby-lang
sailias has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
banisterfiend has quit [*.net *.split]
<yorickpeterse> awww yiss, motherfucking code analysis
<yorickpeterse> took me nearly a month but I'm finally starting to see some light at the end of the tunnel
s1n4 has quit [Ping timeout: 246 seconds]
rohit has quit [Quit: Leaving]
mohamad has quit [Remote host closed the connection]
dous has quit [Ping timeout: 276 seconds]
mistym has quit [Remote host closed the connection]
urbanmonk has quit [Quit: Bye!]
sepp2k has joined #ruby-lang
tooky has joined #ruby-lang
zmack has joined #ruby-lang
lolmaus has quit [Ping timeout: 272 seconds]
dRbiG has quit [Read error: Operation timed out]
dRbiG has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
Axsuul has quit [Ping timeout: 240 seconds]
<masterkorp> Fog API doc is so hard to browse
sailias has quit [Quit: Leaving.]
<Mon_Ouie> Did you try ri or the YARD-generated dversion?
faces has joined #ruby-lang
<masterkorp> there is one ?
<masterkorp> can you give me a link ?
<Mon_Ouie> There always is one on rdoc.info
<Mon_Ouie> (Or you can just generate it yourself)
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sistrall has quit [Read error: Connection reset by peer]
<masterkorp> i was using this
tooky has joined #ruby-lang
sistrall has joined #ruby-lang
mistergibson has quit [Ping timeout: 276 seconds]
andrew_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
<masterkorp> yorickpeterse: thank you sir
<masterkorp> much better
<masterkorp> rdoc sucks
<masterkorp> i have no idea why they link the rdoc version
Criztian has joined #ruby-lang
<yorickpeterse> Because there's a few people out there who like Rdoc and happen to also work on Rubygems
<yorickpeterse> unless the fog gem set the link themselves
<yorickpeterse> err wait, nevermind that. Of course they did, it's hosted on fog.io
* yorickpeterse mumbles something about doing a dozen things at the same time not being a good idea
<masterkorp> ha
bryancp has quit [Remote host closed the connection]
m3nd3s has quit [Read error: Operation timed out]
goshakkk has quit [Quit: Computer has gone to sleep.]
m3nd3s has joined #ruby-lang
carloslopes has joined #ruby-lang
mistergibson has joined #ruby-lang
lolmaus has joined #ruby-lang
goshakkk has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
jaylevitt has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
<masterkorp> Guys, do you recommend any campifire library ?
mistym has quit [Remote host closed the connection]
<masterkorp> Looks nice, any toughs would be welcome
sush24 has joined #ruby-lang
<masterkorp> s/would/are/
<Mon_Ouie> The link to the documentation of gems on rubygems.org links to rdoc.info
elux has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
m3nd3s has joined #ruby-lang
josh^ has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
goshakkk has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
mwjcomputing has quit [Quit: Leaving]
Jake232 has joined #ruby-lang
gsav has joined #ruby-lang
gsav has quit [Client Quit]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
enebo has joined #ruby-lang
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
crackity_jones has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
totallymike has joined #ruby-lang
kvirani has joined #ruby-lang
urbanmonk has joined #ruby-lang
Nisstyre-laptop has quit [Remote host closed the connection]
gsav has quit [Quit: Lost terminal]
lcdhoffman has joined #ruby-lang
Hakon has joined #ruby-lang
weeb1e has joined #ruby-lang
jaylevitt has quit [Quit: jaylevitt]
<crankharder> i'm seeing a case where #clone isn't returning an instance of the same class
Defusal has quit [Ping timeout: 250 seconds]
<crankharder> fwiw, ThinkingSphinx::Search < Array is defined here: https://github.com/pat/thinking-sphinx/blob/master/lib/thinking_sphinx/search.rb#L10
<crankharder> so why is b and Array and not a ThinkingSphinx::Search obj?
<judofyr> crankharder: there's several issues with subclassing Array/Hash
<judofyr> e.g. should Array#select return an Array or the subclass?
<crankharder> i would think it would return self
<crankharder> but i'm biased right now
g0bl1n has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
rolfb has joined #ruby-lang
m3nd3s has joined #ruby-lang
nibbo has quit [Ping timeout: 260 seconds]
andre____ has joined #ruby-lang
andrew_ has quit [Ping timeout: 276 seconds]
outoftime has joined #ruby-lang
jxie has joined #ruby-lang
nibbo has joined #ruby-lang
<zzak> its not really rdoc's fault, that's darkfish
rayners has joined #ruby-lang
agile has quit [Remote host closed the connection]
<zzak> which interestingly enough, is getting a makeover: https://github.com/ged/rdoc-generator-fivefish
imajes has quit [Excess Flood]
lcdhoffman has quit [Quit: lcdhoffman]
imajes has joined #ruby-lang
<crankharder> more direct example of clone not using the same class: https://gist.github.com/3699205
<zzak> ged: got any examples of fivefish up yet?
lcdhoffman has joined #ruby-lang
sailias has joined #ruby-lang
jaylevitt has joined #ruby-lang
jaylevitt has quit [Remote host closed the connection]
kitallisii has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jaylevitt has joined #ruby-lang
andre____ has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
<ged> zzak: And I hardly see how the README not being parsed is Darkfish's fault.
crackity_jones has quit [Quit: Computer has gone to sleep.]
coryf has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lolmaus has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
bfreeman has quit [Quit: bfreeman]
tommylommykins has left #ruby-lang [#ruby-lang]
<zzak> ged: i was referring more about the long list of modules, classes, methods, etc
<zzak> looks good!
<ged> zzak: Ah, yes, that is inconvenient.
<zzak> i'd like to see this merged into rdoc
<ged> But that's only the top-level page because the README.md wasn't included.
<ged> If there's no '--main', Darkfish just dumps the index because it's better than nothing.
rayners has quit [Ping timeout: 244 seconds]
<ged> Well thanks!
elux has quit [Quit: Bye!]
<ged> I'm pretty happy with how it turned out
judofyr has quit [Remote host closed the connection]
<zzak> darkfish is kinda ugly and disorganized
<zzak> no offense
|Vargas| has quit [Quit: ...]
agile has joined #ruby-lang
pendlepants has joined #ruby-lang
dr_bob has quit []
<zzak> ged: maybe bring it up to drbrain about replacing darkfish 2, he's in japan this week for sapporo
g0bl1n has quit [Quit: g0bl1n]
ivanoats has quit [Remote host closed the connection]
pabloh has joined #ruby-lang
<ged> zzak: Well, I only made Darkfish to be nicer than the previous template, and to allow people to use their own CSS to make it pretty.
<ged> zzak: I guess the latter has since become less of an option since the --stylesheet option was removed. Oh well.
lcdhoffman has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
m3nd3s has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<zzak> ged: thats too bad about --stylesheet, but it's not hard to replace the generated css with your own
<zzak> ged: i like fivefish a lot though, it should be the default generator for ruby 2.0
wyhaines_ has joined #ruby-lang
m3nd3s has quit [Ping timeout: 260 seconds]
rue|w has quit [Ping timeout: 248 seconds]
<ged> Heh, Fog is a good library for profiling Fivefish. 2567 sources!
<ged> Only 14% documented, though.
sistrall has quit [Quit: sistrall]
andrew_ has joined #ruby-lang
sistrall has joined #ruby-lang
sistrall has quit [Client Quit]
nXqd has quit [Ping timeout: 264 seconds]
mytrile has quit [Remote host closed the connection]
<masterkorp> Can date.parse parse the %m%d%Y format ?
rolfb has quit [Read error: Connection reset by peer]
rolfb has joined #ruby-lang
<masterkorp> nope
<masterkorp> will use striptime
atsao has joined #ruby-lang
atsao has quit [Client Quit]
bryancp has joined #ruby-lang
cardinal has joined #ruby-lang
wmoxam_ has joined #ruby-lang
GarethAdams has quit [Ping timeout: 252 seconds]
atsao has joined #ruby-lang
mistergibson has quit [Remote host closed the connection]
atsao has quit [Client Quit]
runeb has quit [Remote host closed the connection]
atsao has joined #ruby-lang
titaniumNoob_ has joined #ruby-lang
titaniumNoob_ has quit [Ping timeout: 276 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
mwjcomputing has joined #ruby-lang
coryf has quit [Remote host closed the connection]
lolmaus has joined #ruby-lang
coryf has joined #ruby-lang
alvaro_o has joined #ruby-lang
titaniumNoob_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
<yorickpeterse> blegh, GH is down
dreamhawk has quit [Ping timeout: 248 seconds]
solars has quit [Ping timeout: 244 seconds]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
macmartine has joined #ruby-lang
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
Jake232 has quit [Quit: Computer has gone to sleep.]
nibbo has quit [Ping timeout: 272 seconds]
<wmoxam_> yorickpeterse: proving once again that Rails can't scale
spuk_ has joined #ruby-lang
<yorickpeterse> ...except it has nothing to do with Rails
<yorickpeterse> "08:35 AM PST We've taken a bad DB down and are working to return the DB cluster to a normal state now."
spuk_ has quit [Client Quit]
ivanoats has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
nibbo has joined #ruby-lang
Tearan has joined #ruby-lang
pendlepants has left #ruby-lang [#ruby-lang]
dreamhawk has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
danishman has joined #ruby-lang
nibbo has quit [Ping timeout: 260 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
titaniumNoob_ has quit [Ping timeout: 276 seconds]
dreamhawk has quit [Read error: Connection reset by peer]
bfreeman has joined #ruby-lang
sustainableweb has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
GarethAdams has joined #ruby-lang
zmack has quit [Remote host closed the connection]
sustainableweb has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 246 seconds]
sush24 has joined #ruby-lang
dreamhawk has joined #ruby-lang
ruby-lang182 has joined #ruby-lang
qwerxy has quit [Quit: offski]
Nisstyre-laptop has joined #ruby-lang
sepp2k1 has joined #ruby-lang
<darix> yorickpeterse: you cant just destroy his argument with facts. that is unfair!
sepp2k has quit [Ping timeout: 276 seconds]
nibbo has joined #ruby-lang
d3vin has joined #ruby-lang
qwerxy has joined #ruby-lang
d3vin has left #ruby-lang [#ruby-lang]
towski has joined #ruby-lang
Nisstyre-laptop has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
wallerdev has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
ruby-lang182 has quit [Ping timeout: 245 seconds]
stepnem has quit [Ping timeout: 268 seconds]
stepnem has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby-lang
yxhuvud has joined #ruby-lang
urbanmonk has quit [Quit: Bye!]
chimkan has quit [Quit: chimkan]
m3nd3s has joined #ruby-lang
Assurbanipal has joined #ruby-lang
robotmay has joined #ruby-lang
atsao has quit [Quit: Leaving...]
tooky has quit [Remote host closed the connection]
atsao has joined #ruby-lang
qwerxy has quit [Ping timeout: 260 seconds]
bryancp has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
justinmcp has quit [Ping timeout: 246 seconds]
lcdhoffman has joined #ruby-lang
<Assurbanipal> hi guys anyone around?could someone recommend a tutorial not on learning ruby, but learning to program,using ruby?
butchanton has joined #ruby-lang
<rue> There’s only one
<rue> corundum: tutorial?
sush24 has quit [Quit: This computer has gone to sleep]
<mistym> Oh yeah, I've heard good things about Learn to Program too.
<Assurbanipal> rue: i m already working with pine's book and it's good
DEac-_ has quit [Quit: leaving]
<Assurbanipal> i was wondering if there is amaybe a video tut teaching general programing through using ruby as a tool
brianritchie has joined #ruby-lang
brianritchie has quit [Client Quit]
<Assurbanipal> i have also sterted the SICP series that use Lisp's Scheme, and is amazing,but is maybe too much for me now..i lack the mathematical background to completly follow it
brianritchie has joined #ruby-lang
<Assurbanipal> is there something like it but using ruby/?
brianritchie has quit [Client Quit]
tbuehlmann has joined #ruby-lang
brianritchie has joined #ruby-lang
brianritchie has quit [Remote host closed the connection]
jtoy_ has joined #ruby-lang
brianritchie has joined #ruby-lang
countdigi has quit [Quit: Lost terminal]
jtoy has quit [Ping timeout: 248 seconds]
jtoy_ is now known as jtoy
Nisstyre-laptop has joined #ruby-lang
chimkan_ has joined #ruby-lang
sistrall has joined #ruby-lang
kvirani has joined #ruby-lang
sistrall has left #ruby-lang [#ruby-lang]
sailias has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
tooky has joined #ruby-lang
rippa has joined #ruby-lang
zmack has joined #ruby-lang
titaniumNoob_ has joined #ruby-lang
Jake232 has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
qpingu has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
goshakkk has joined #ruby-lang
havenn has joined #ruby-lang
titaniumNoob_ has quit [Remote host closed the connection]
RegEchse has joined #ruby-lang
qwerxy has joined #ruby-lang
DEac- has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
chimkan has joined #ruby-lang
Carnage\ has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby-lang
havenn has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby-lang
rue|w has joined #ruby-lang
andrew_ has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
dreamhawk has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Remote host closed the connection]
dreamhawk has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has joined #ruby-lang
rue|w has quit [Ping timeout: 264 seconds]
macmartine has joined #ruby-lang
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby-lang
nibbo has joined #ruby-lang
Criztian has joined #ruby-lang
goshakkk has joined #ruby-lang
pr0ton has joined #ruby-lang
solars has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lolmaus has quit []
dr_bob has quit [Quit: Leaving.]
voker57 has joined #ruby-lang
macmartine has joined #ruby-lang
asaaki has joined #ruby-lang
runeb has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dgs has joined #ruby-lang
<dgs> is there any way supply a default string to gets? (so the user can edit it before hitting enter)
havenn has quit [Remote host closed the connection]
<canton7> dgs, iirc the highline gem provdes methods like that
runeb has quit [Ping timeout: 276 seconds]
<dgs> canton7: cool. I'll have a look at that. thanks =)
nXqd has joined #ruby-lang
cardinal has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
andrew_ has joined #ruby-lang
dgs has quit [Ping timeout: 244 seconds]
Tearan has quit [Quit: Sleepy Badger....]
elux has joined #ruby-lang
jtoy_ has joined #ruby-lang
Criztian has quit [*.net *.split]
chimkan has quit [*.net *.split]
sailias has quit [*.net *.split]
kvirani has quit [*.net *.split]
jtoy has quit [*.net *.split]
pabloh has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
MrOnFireMr has quit [*.net *.split]
rhizmoe has quit [*.net *.split]
crankharder has quit [*.net *.split]
cldwalker has quit [*.net *.split]
bryno has quit [*.net *.split]
Kellin has quit [*.net *.split]
bougyman has quit [*.net *.split]
Muz has quit [*.net *.split]
kuja has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
Kero has quit [*.net *.split]
jarib has quit [*.net *.split]
steez has quit [*.net *.split]
jtoy_ is now known as jtoy
Criztian has joined #ruby-lang
sailias has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
bougyman has joined #ruby-lang
bryno has joined #ruby-lang
MrOnFireMr has joined #ruby-lang
cldwalker has joined #ruby-lang
pabloh has joined #ruby-lang
crankharder has joined #ruby-lang
kuja has joined #ruby-lang
Kero has joined #ruby-lang
rhizmoe has joined #ruby-lang
steez has joined #ruby-lang
Kellin has joined #ruby-lang
CoverSlide has joined #ruby-lang
Muz has joined #ruby-lang
steveklabnik has quit [Ping timeout: 245 seconds]
kvirani has joined #ruby-lang
Spaceghost|cloud has quit [Max SendQ exceeded]
kuja has quit [Max SendQ exceeded]
Tearan has joined #ruby-lang
jarib has joined #ruby-lang
MrOnFireMr has quit [Excess Flood]
steveklabnik has joined #ruby-lang
kuja has joined #ruby-lang
macmartine has joined #ruby-lang
MrOnFireMr has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
meisterT has quit [Ping timeout: 252 seconds]
malev has joined #ruby-lang
meisterT has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
Tearan has quit [Quit: Sleepy Badger....]
erichmenge has joined #ruby-lang
hramrach has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby-lang
totallymike has quit [Quit: WeeChat 0.3.7]
jaylevitt has quit [Ping timeout: 260 seconds]
VGoff is now known as VGoff_afk
carloslopes has quit [Quit: Leaving.]
m3nd3s has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
tooky has joined #ruby-lang
dgs has joined #ruby-lang
andrew_ is now known as andrewhl
dgs has quit [Client Quit]
Asher has quit [Read error: Connection reset by peer]
thone_ has quit [Ping timeout: 260 seconds]
dgs has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
havenn has quit [Remote host closed the connection]
thone has joined #ruby-lang
Asher has joined #ruby-lang
llakey has quit [Quit: leaving]
llakey has joined #ruby-lang
postmodern_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
llakey has quit [Client Quit]
dgs has quit [Read error: Connection reset by peer]
postmodern has quit [Ping timeout: 252 seconds]
dgs has joined #ruby-lang
llakey has joined #ruby-lang
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
llakey has quit [Client Quit]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
llakey has joined #ruby-lang
postmodern_ has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
m3nd3s has joined #ruby-lang
Axsuul has joined #ruby-lang
qwerxy has joined #ruby-lang
wmoxam_ has quit [Quit: leaving]
wpaulson has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
burgestrand has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
mwjcomputing has quit [Quit: Leaving]
m3nd3s_ has joined #ruby-lang
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
rippa has quit [Ping timeout: 260 seconds]
m3nd3s has quit [Ping timeout: 246 seconds]
dgs has quit [Ping timeout: 246 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dgs has joined #ruby-lang
lun_ has joined #ruby-lang
tooky_ has joined #ruby-lang
tooky has quit [Read error: Connection reset by peer]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
havenn has joined #ruby-lang
dgs has quit [Ping timeout: 248 seconds]
m3nd3s_ has quit [Read error: Connection timed out]
carloslopes has quit [Read error: Connection reset by peer]
totallymike has joined #ruby-lang
m3nd3s has joined #ruby-lang
tooky_ has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
Fullmoon has quit [Quit: Fullmoon]
benanne has joined #ruby-lang
asaaki has quit [Quit: Bye!]
carloslopes has joined #ruby-lang
tonni has joined #ruby-lang
havenn has quit [Remote host closed the connection]
m3nd3s has quit [Read error: Connection timed out]
asaaki has joined #ruby-lang
dgs has joined #ruby-lang
qwerxy has joined #ruby-lang
cardinal has joined #ruby-lang
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
m3nd3s has joined #ruby-lang
asaaki has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
manuw_ has quit [Quit: leaving]
danishman has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
yxhuvud has quit [Ping timeout: 260 seconds]
zmack has quit [Remote host closed the connection]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
carloslopes has quit [Quit: Leaving.]
CarlB_the_great has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
sailias has quit [Quit: Leaving.]
bryancp has joined #ruby-lang
solars has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Assurbanipal has quit [Quit: Konversation terminated!]
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
chimkan_ has joined #ruby-lang
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
stardiviner has joined #ruby-lang
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
zmack has joined #ruby-lang
postmodern has quit [Quit: Leaving]
goshakkk has quit [Quit: Computer has gone to sleep.]
elux has quit [Quit: Bye!]
fromhet has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<fromhet> Howdy-ho! Just now I found out that you can do File.vim('/path/to/file') in irb. Is that common? I can do it with mvim too, but gvim seems unsupported? I can't do it in Rakefile's, is there a reason for that?
postmodern has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
macmartine has joined #ruby-lang
goshakkk has joined #ruby-lang
wyhaines_ has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
<levicole> fromhet: are you sure you don't have something fancy going on in your .irbrc file?
<erikh> /w 2
<steveklabnik> OH NO erikh HATES US
<snorkdude> Hey guys, can anyone explain to me what a
<snorkdude> *a ||= b means
goshakkk has quit [Client Quit]
<steveklabnik> 1.9.3-p194 :003 > *a ||= b
<steveklabnik> SyntaxError: compile error
<steveklabnik> (irb):3: syntax error, unexpected tOP_ASGN, expecting '='
<steveklabnik> *a ||= b
<fromhet> levicole: of course! Verdammt, that would have been very useful. It requires 'interactive_editor', something I saw on vimcasts. Silly me!
<steveklabnik> is what it means to me ;)
<Mon_Ouie> If a is nil or false (or even undefined) it sets it to b
qwerxy has joined #ruby-lang
<erikh> steveklabnik: wat
<Mon_Ouie> steveklabnik: the "*" is a convention for correcting oneself ;)
<levicole> steveklabnik: i think he was correcting himself
<snorkdude> Yes, I was.
love_color_text has joined #ruby-lang
<steveklabnik> erikh: you tried to close the window
<steveklabnik> oh
<steveklabnik> thanks everyone
<steveklabnik> never seen that
sailias has joined #ruby-lang
<erikh> first day at new job, i'm feeling bad enough for doing irc in general :)
<steveklabnik> a ||= b is (a || a = b), iirc
<steveklabnik> it has the semantics of a = a || b but is funky in what it actually does
<erikh> a = a || b
<steveklabnik> i always fucking type it wrong
<steveklabnik> erikh: no, it is expressly NOT that.
<Mon_Ouie> a || a = b is the closest expansion but actually even that one is slightly different for variables
<Mon_Ouie> Because it also works when a isn't defined yet
<steveklabnik> right.
<erikh> ah, yeah, I guess I see your point
<Mon_Ouie> But it's still different from erikh's for methods — because the setter is not called when a is non-falsy
mihar has quit [Ping timeout: 246 seconds]
<erikh> well, || is magical in ruby anyhow.
<erikh> compared to, say, java.
qwerxy has quit [Client Quit]
solars has quit [Ping timeout: 252 seconds]
dgs has quit [Ping timeout: 260 seconds]
m3nd3s has quit [Remote host closed the connection]
Nisstyre has quit [Read error: Connection reset by peer]
mihar has joined #ruby-lang
Nisstyre has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
dgs has joined #ruby-lang
qwerxy has joined #ruby-lang
bryancp has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
gsav_ has quit [Ping timeout: 248 seconds]
Madis has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120313180949]]
<whitequark> steveklabnik: fwiw, it doesn't matter for local variables
<whitequark> a = a # => nil
<whitequark> but it indeed does for @ivars
mistym has quit [Remote host closed the connection]
atsao has quit [Quit: Leaving...]
<whitequark> relevant: https://gist.github.com/3702533
benanne has quit [Quit: kbai]
countdigi has joined #ruby-lang
lun_ has quit [Ping timeout: 246 seconds]
CarlB_the_great has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
toretore has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
atsao has joined #ruby-lang
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
enebo has quit [Quit: enebo]
<Mon_Ouie> Other things that break the common expansions: in foo.bar.baz ||= 3, foo.bar is only evaluated once
kain has quit [Ping timeout: 252 seconds]
stepnem has quit [Ping timeout: 248 seconds]
fromhet has quit [Quit: fromhet]
macmartine has quit [Quit: Computer has gone to sleep.]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dgs has quit [Ping timeout: 246 seconds]
<whitequark> huh, nice
lun_ has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
MrOnFireMr has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby-lang
love_color_text has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
anannie has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Carnage\ has quit []
m3nd3s_ has joined #ruby-lang
Nisstyre has quit [Remote host closed the connection]
esin has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Jake232 has quit [Quit: Computer has gone to sleep.]
coryf has quit [Remote host closed the connection]
cardinal has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stardiviner has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 244 seconds]
cantonic_ has joined #ruby-lang
wyhaines has joined #ruby-lang
snorkdude has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
dgs has joined #ruby-lang
petercooper has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dgs has quit [Quit: dgs]
havenn has quit [Read error: No route to host]
Torrieri has quit [Ping timeout: 276 seconds]
andrewhl has joined #ruby-lang
nXqd has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
VGoff_afk has quit [Ping timeout: 246 seconds]
VGoff_afk has joined #ruby-lang
VGoff_afk is now known as VGoff
chendo_ has joined #ruby-lang
seanstickle has joined #ruby-lang
m3nd3s_ has quit []
Nisstyre-laptop has joined #ruby-lang
chimkan has joined #ruby-lang
petercooper has quit [Remote host closed the connection]