ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
Guest59959 has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
ikrima has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
Guest59959 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
polyidus has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
RobertBirnie has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ciao.]
marr has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
alekst has joined #ruby-lang
ddv has quit [Ping timeout: 260 seconds]
ddv has joined #ruby-lang
rkstarnerd has joined #ruby-lang
vvikus has quit [Quit: WeeChat 0.4.2]
nofxx_ has joined #ruby-lang
ruby-lang205 has quit [Ping timeout: 246 seconds]
nofxx has quit [Ping timeout: 240 seconds]
apt-get_ has quit [Quit: Quitte]
polyidus has quit [Quit: EOF]
banister has joined #ruby-lang
|jemc| has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
banister has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
tkuchiki has joined #ruby-lang
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby-lang
djbkd has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
amclain has joined #ruby-lang
polyidus has joined #ruby-lang
shinnya has joined #ruby-lang
Averna has joined #ruby-lang
chouhoulis has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
chouhoulis has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
ikrima_ has joined #ruby-lang
ikrima_ has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
vintik has quit [Read error: Connection reset by peer]
vintik has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
|jemc| has joined #ruby-lang
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
vintik has quit [Ping timeout: 240 seconds]
weems|mac has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
alekst has joined #ruby-lang
bruno- has joined #ruby-lang
mistym has joined #ruby-lang
Sirupsen has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
cleopatra has quit [Quit: Saliendo]
nathanstitt has joined #ruby-lang
MikaAK has joined #ruby-lang
Miphix has joined #ruby-lang
alekst has quit [Quit: Leaving...]
torrieri has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
torrieri_ has joined #ruby-lang
torrieri_ has quit [Client Quit]
hahuang65 has quit [Ping timeout: 256 seconds]
thatdutchguy_ has joined #ruby-lang
torrieri has joined #ruby-lang
torrieri has quit [Client Quit]
<thatdutchguy_> Time.parse raises a not-so-communicative exeption when passed an invalid date, see https://gist.github.com/thatdutchguy/2be0d51294b7ccc9bf7f
<thatdutchguy_> is this a bug?
saarinen has joined #ruby-lang
<karamazov> what's -> in ruby?
<|jemc|> stabby lambda
<karamazov> ah. cool
davispuh has quit [Remote host closed the connection]
<godd2> also, parameters go outside the {} but in parentheses and there must be no space between -> and () like so: ->(a, b) {puts a; puts b}
weems|mac has quit [Quit: weems|mac]
hahuang65 has joined #ruby-lang
<whitequark> >> -> (space) {}
<eval-in> whitequark => #<Proc:0x41475cc0@/tmp/execpad-9733a70fb68a/source-9733a70fb68a:2 (lambda)> (https://eval.in/174288)
<karamazov> Sweet - I'm just now learning how to use them correctly. Been doing ruby puzzles all day to prep for a phone interview.
<karamazov> Yuo want the Fibonacci sequence? PSHHHHH easy.
<karamazov> *you
shinnya has quit [Ping timeout: 272 seconds]
godd2 has quit [Ping timeout: 272 seconds]
<zenspider> stabby lambda is the devil
gix has quit [Quit: Client exiting]
<whitequark> zenspider: y u hate stabby lambda
<karamazov> avoid the devil? or is the dark side nice?
amystephen has quit [Quit: amystephen]
rue_XIV has joined #ruby-lang
mistym_ has joined #ruby-lang
|jemc|_ has joined #ruby-lang
mistym has quit [Ping timeout: 255 seconds]
tkuchiki_ has joined #ruby-lang
freedrul1 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rue has quit [Ping timeout: 245 seconds]
freedrull has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
Gaelane has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
GaelanAintAround has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
bruno- has joined #ruby-lang
|jemc|_ is now known as |jemc|
wallerdev has joined #ruby-lang
<zenspider> whitequark: we don't need more stupid syntax. we need less.
lsegal has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
<whitequark> you're just mad it added more work for ruby_parser ;D
Cakey has joined #ruby-lang
saarinen has quit [Quit: saarinen]
tectonic has joined #ruby-lang
saarinen has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
saarinen has quit [Read error: Connection reset by peer]
ruby-lang536 has joined #ruby-lang
saarinen has joined #ruby-lang
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
<ruby-lang536> does this seem like a legitimate way to do a if/else statement? https://gist.github.com/KaoruDev/1a244eb4022822b4dd63
gix has joined #ruby-lang
<whitequark> just use case..when
mistym_ is now known as mistym
polyidus has quit [Quit: EOF]
hahuang65 has quit [Ping timeout: 240 seconds]
thatdutchguy_ has quit [Remote host closed the connection]
m3k40 has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby-lang
Soilent_ has joined #ruby-lang
agarie has joined #ruby-lang
stayarrr has joined #ruby-lang
Soilent_ has quit [Ping timeout: 255 seconds]
lsegal` has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkstarnerd has quit [Ping timeout: 264 seconds]
Soilent_ has joined #ruby-lang
lsegal has quit [Ping timeout: 245 seconds]
dostoyevsky has quit [Ping timeout: 245 seconds]
dostoyevsky has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby-lang
Soilent_ has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby-lang
Soilent_ has joined #ruby-lang
gix has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Soilent_ has quit [Ping timeout: 264 seconds]
m3k40 has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
jbardin has quit [Quit: jbardin]
lsegal` has quit [Read error: Connection reset by peer]
Soilent_ has joined #ruby-lang
lsegal has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
agarie has quit [Remote host closed the connection]
Soilent_ has quit [Ping timeout: 250 seconds]
jbardin has joined #ruby-lang
stayarrr has joined #ruby-lang
stayarrr has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
Cakey has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karamazov has quit []
momomomomo has quit [Quit: momomomomo]
agrinb has quit [Remote host closed the connection]
Derander has quit [Excess Flood]
jxie has quit [Quit: leaving]
gix has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
fowlduck has left #ruby-lang [#ruby-lang]
jbardin has quit [Quit: jbardin]
vikasyaligar has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
skade has joined #ruby-lang
Derander has joined #ruby-lang
skade has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
agrinb has joined #ruby-lang
relix has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
ruby-lang536 has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 272 seconds]
torrieri has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has joined #ruby-lang
Cakey has joined #ruby-lang
RobertBirnie has joined #ruby-lang
torrieri has quit [Quit: Linkinus - http://linkinus.com]
stayarrr has joined #ruby-lang
enkristoffer has joined #ruby-lang
amclain has quit [Quit: Leaving]
kaiwren has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
landodger has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
agrinb has quit [Remote host closed the connection]
Soilent_ has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
havenwood has joined #ruby-lang
Soilent_ has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
ari-_-e has joined #ruby-lang
Soilent_ has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
riffraff has joined #ruby-lang
stayarrr has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
Soilent_ has quit [Ping timeout: 250 seconds]
stayarrr has quit [Quit: Leaving...]
brianpWins has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
stayarrr has joined #ruby-lang
apeiros has joined #ruby-lang
saarinen has quit [Ping timeout: 245 seconds]
stayarrr has quit [Quit: Leaving...]
mistym has joined #ruby-lang
stayarrr has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Soilent_ has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
duderonomy has joined #ruby-lang
Soilent_ has quit [Ping timeout: 245 seconds]
Soilent_ has joined #ruby-lang
solars has joined #ruby-lang
mistym has joined #ruby-lang
Soilent_ has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
freedrul1 is now known as freedrull
ari-__-e has joined #ruby-lang
ari-_-e has quit [Disconnected by services]
ari-__-e is now known as ari-_-e
agrinb has joined #ruby-lang
agrinb has quit [Ping timeout: 260 seconds]
AKASkip has joined #ruby-lang
bruno- has joined #ruby-lang
_ht has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
Soilent_ has joined #ruby-lang
stayarrr has joined #ruby-lang
vondruch has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
Soilent_ has quit [Ping timeout: 272 seconds]
vikasyaligar has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 245 seconds]
|jemc| has quit [Read error: Connection reset by peer]
Soilent_ has joined #ruby-lang
|jemc| has joined #ruby-lang
nofxx_ has quit [Ping timeout: 272 seconds]
skade has joined #ruby-lang
heftig has quit [Ping timeout: 250 seconds]
ddv has quit [Changing host]
ddv has joined #ruby-lang
heftig has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Soilent_ has quit [Ping timeout: 260 seconds]
Soilent_ has joined #ruby-lang
robmiller has joined #ruby-lang
robmiller1 has joined #ruby-lang
robmiller1 has quit [Remote host closed the connection]
robmiller has quit [Read error: Connection reset by peer]
Soilent_ has quit [Ping timeout: 256 seconds]
tris has quit [Excess Flood]
tris has joined #ruby-lang
<maloik> back from my holiday :(
arBmind has quit [Quit: Leaving.]
Soilent_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
creede has quit [Ping timeout: 245 seconds]
Soilent_ has quit [Ping timeout: 250 seconds]
tectonic has quit []
|jemc| has quit [Ping timeout: 245 seconds]
|jemc| has joined #ruby-lang
Soilent_ has joined #ruby-lang
fullybaked has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
Soilent_ has quit [Ping timeout: 264 seconds]
creede has joined #ruby-lang
krasnus has joined #ruby-lang
arBmind has joined #ruby-lang
AKASkip has joined #ruby-lang
stayarrr has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
skade has joined #ruby-lang
mnngfltg has joined #ruby-lang
setmeaway has joined #ruby-lang
zenspider has quit [Ping timeout: 256 seconds]
adphillips has joined #ruby-lang
adphillips has quit [Client Quit]
zenspider has joined #ruby-lang
Cakey has joined #ruby-lang
ironhide_604 has joined #ruby-lang
Blaguvest has joined #ruby-lang
rsl has quit [Ping timeout: 240 seconds]
s1kx has quit [Read error: Connection reset by peer]
apofis has quit [Ping timeout: 245 seconds]
s1kx has joined #ruby-lang
riffraff has quit [Quit: Leaving]
setmeaway has quit [Quit: Leaving]
mikecmpbll has joined #ruby-lang
<yorickpeterse> morning
sMecKs has quit [Read error: Connection reset by peer]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Averna has quit [Quit: Leaving.]
elia has joined #ruby-lang
michd is now known as MichD
ssam2 has joined #ruby-lang
bruno- has joined #ruby-lang
ruby-lang872 has joined #ruby-lang
ruby-lang872 has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
Blaguvest has quit [Remote host closed the connection]
Blaguvest has joined #ruby-lang
mehlah has joined #ruby-lang
postmodern has quit [Quit: Leaving]
Blaguvest has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
heftig has quit [Ping timeout: 272 seconds]
skade has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
Cakey has quit [Ping timeout: 250 seconds]
alexju has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
heftig has joined #ruby-lang
workmad3 has joined #ruby-lang
sferik has joined #ruby-lang
lele|w has quit [Ping timeout: 256 seconds]
robmiller has joined #ruby-lang
banister has joined #ruby-lang
alexju_ has joined #ruby-lang
alexju has quit [Ping timeout: 245 seconds]
lele|w has joined #ruby-lang
alexju_ has quit [Ping timeout: 250 seconds]
relix_ has joined #ruby-lang
relix has quit [Ping timeout: 256 seconds]
apofis has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
apofis has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soilent_ has joined #ruby-lang
Soilent_ has quit [Ping timeout: 240 seconds]
arBmind has quit [Quit: Leaving.]
Soilent_ has joined #ruby-lang
kek has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
|jemc| has quit [Ping timeout: 272 seconds]
Soilent_ has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby-lang
Soilent_ has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 255 seconds]
hackeron has quit [Ping timeout: 255 seconds]
Soilent_ has quit [Ping timeout: 240 seconds]
stayarrr has quit [Quit: Leaving...]
creede has quit [Ping timeout: 255 seconds]
developer has joined #ruby-lang
Soilent_ has joined #ruby-lang
sferik has joined #ruby-lang
yawn has joined #ruby-lang
alexju has joined #ruby-lang
sferik has quit [Ping timeout: 250 seconds]
<ddfreyne> I keep forgetting stabby lambda syntax.
<ddfreyne> Occasionally, it doesn't like the space between -> and (. I haven't figured out when that is the case yet.
symm- has joined #ruby-lang
Soilent_ has quit [Ping timeout: 272 seconds]
katlogic has quit [Read error: Connection reset by peer]
Blaguvest has joined #ruby-lang
creede has joined #ruby-lang
InfraRuby has joined #ruby-lang
jose55 has joined #ruby-lang
katlogic has joined #ruby-lang
newmember has joined #ruby-lang
<newmember> hello world !
<workmad3> newmember: o/
<newmember> i need help plz
<matti> newmember: Hello.
<matti> newmember: We charge £5.99 for helping before lunch time.
<matti> ;]
<newmember> i was trying to install the ruby ide
<matti> newmember: Just ask the question ;]
<newmember> on windows
<newmember> using the linux environement cygwin
gpg_ has joined #ruby-lang
godd2 has joined #ruby-lang
<newmember> once i run $bundle install
jose55 has quit [Quit: Leaving]
<newmember> it gives an error !
<newmember> on installing sqlite3-ruby
_elia has joined #ruby-lang
<havenwood> newmember: do you have sqlite installed?
<newmember> yes
<havenwood> newmember: DevKit installed?
<newmember> Installing sqlite3-ruby (1.2.5) with native extensions /usr/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
<newmember> thanks but its linux like
sferik has joined #ruby-lang
newmember has quit [Quit: Page closed]
szuletett has joined #ruby-lang
Miphix has quit [Quit: Leaving]
symm- has quit [Ping timeout: 240 seconds]
sferik has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
developer has quit [*.net *.split]
tkuchiki has joined #ruby-lang
elia has quit [*.net *.split]
sp_ has joined #ruby-lang
psycho_one has joined #ruby-lang
psycho_one has quit [Remote host closed the connection]
InfraRuby has quit [Remote host closed the connection]
psycho_one has joined #ruby-lang
psycho_one has left #ruby-lang [#ruby-lang]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szuletett has quit [Quit: Leaving]
Soilent__ has quit [Quit: Lost terminal]
sp_ is now known as astroturf
astroturf is now known as astroTurf
hackeron has joined #ruby-lang
Atttwww has quit [Ping timeout: 256 seconds]
digs has joined #ruby-lang
digs is now known as Guest30643
jsullivandigs has quit [Ping timeout: 255 seconds]
havenwood has quit []
vikasyaligar has joined #ruby-lang
stamina has joined #ruby-lang
banister has joined #ruby-lang
dangerousdave has joined #ruby-lang
Cakey has joined #ruby-lang
hackeron has quit [Ping timeout: 255 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thang has quit [Ping timeout: 250 seconds]
thang has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
kaiwren has joined #ruby-lang
astroTurf has quit [Remote host closed the connection]
astroTurf has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby-lang
Sirupsen has joined #ruby-lang
astroTurf has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
alexju has quit [Remote host closed the connection]
szuletett has joined #ruby-lang
banister has quit [Client Quit]
szuletett has quit [Client Quit]
szuletett has joined #ruby-lang
heftig has quit [Ping timeout: 250 seconds]
thang has quit [Ping timeout: 250 seconds]
thang has joined #ruby-lang
<godd2> >> RUBY_VERSION
<eval-in> godd2 => "2.1.2" (https://eval.in/174451)
<godd2> ah ok so in 1.9.3, -> (a) {} would cause an error, but I guess they fixed that so you can put spaces between -> and ()
<yorickpeterse> godd2: Yes, that was recently patched
yawn has quit [Ping timeout: 250 seconds]
yawn has joined #ruby-lang
astroTurf has joined #ruby-lang
heftig has joined #ruby-lang
K3dare has quit [Quit: ZNC - http://znc.in]
K3dare has joined #ruby-lang
K3dare is now known as Kedare
Kedare is now known as Guest35256
<ddfreyne> Ah!
<ddfreyne> JRuby has the issue still I believe.
chouhoulis has joined #ruby-lang
Guest35256 has left #ruby-lang [#ruby-lang]
heftig has quit [Ping timeout: 255 seconds]
yfeldblu_ has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
ayonkhan has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
rsl has joined #ruby-lang
<gpg_> hi anyone know how to iterate through virtual attributes. methods in model that arent in database? https://gist.github.com/ggeorgiev1/b5bbc8a68691f20a14f4
ayonkhan has quit [Quit: Lingo - http://www.lingoirc.com]
ayonkhan has joined #ruby-lang
ayonkhan has quit [Client Quit]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
jxie has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
sheperson has joined #ruby-lang
sepp2k has joined #ruby-lang
sferik has joined #ruby-lang
ldnunes has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
charliesome has joined #ruby-lang
chouhoul_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
spastorino has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 255 seconds]
mehlah has joined #ruby-lang
leandrosnunes has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
sferik has quit [Client Quit]
yfeldblum has quit [Ping timeout: 245 seconds]
[spoiler] has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
arBmind has joined #ruby-lang
sheperson has quit [Ping timeout: 255 seconds]
leandros1 has joined #ruby-lang
arBmind1 has joined #ruby-lang
leandrosnunes has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby-lang
elia has joined #ruby-lang
tkuchiki has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
sferik has joined #ruby-lang
jgpawletko has joined #ruby-lang
sferik has quit [Client Quit]
saarinen has joined #ruby-lang
sferik has joined #ruby-lang
relix has joined #ruby-lang
workmad3 has quit [Read error: Connection reset by peer]
saarinen has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Remote host closed the connection]
bffff_ has joined #ruby-lang
saarinen has joined #ruby-lang
workmad3 has joined #ruby-lang
mehlah has quit [Quit: Linkinus - http://linkinus.com]
Miphix has joined #ruby-lang
astroTurf has quit [Remote host closed the connection]
Miphix has quit [Read error: Connection reset by peer]
astroTurf has joined #ruby-lang
Miphix has joined #ruby-lang
saarinen has quit [Quit: saarinen]
malconis has joined #ruby-lang
charliesome has joined #ruby-lang
astroTurf has quit [Ping timeout: 250 seconds]
Sirupsen has joined #ruby-lang
* yorickpeterse is cowboy coding
* yorickpeterse has a pink sombrero
<surrounder> hehehe
ur5us has quit [Remote host closed the connection]
Miphix has quit [Ping timeout: 244 seconds]
<ssam2> hi! is this an expected error or there something weird going on?
<ssam2> /usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'ohai' (~> 7.2) - did find: [ohai-7.2.0.rc.1] (Gem::LoadError)
<ssam2> I don't fully understand the semantics of ~>, but it seems like 7.2.0.rc.1 should match ~> 7.2 ?
<maloik> perhaps that's not the case for rc versions
<maloik> not entirely sure myself
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
<ssam2> Gem::Requirement.new('~> 7.2.0').satisfied_by? Gem::Version.new('7.2.0.rc1')
<ssam2> => false
<ssam2> so I guess this is expected. Just need to work out how I've ended up with a set of Gems that don't work together :/
Soilent has joined #ruby-lang
rcvalle has joined #ruby-lang
<gpg_> I am trying to map keys and values to a Model.attribute https://gist.github.com/ggeorgiev1/a8d7611ffd9b818eb866 not sure if this is possible?
<gpg_> thanks
robbyoconnor has quit [Ping timeout: 260 seconds]
InfraRuby has joined #ruby-lang
<gpg_> Assign the hash's key and its value to a virtual attribute? Is this possible?
jam__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
<gpg_> si it looks: [{"cat_modifiers":"7=>[5, 54, 55]"}] JSON
<gpg_> *so
AKASkip has quit [Ping timeout: 255 seconds]
elia has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
astroTurf has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
szuletett has quit [Ping timeout: 255 seconds]
karamazov has joined #ruby-lang
sarkyniin has quit [Ping timeout: 240 seconds]
neanias has joined #ruby-lang
sarkyniin has joined #ruby-lang
elia has joined #ruby-lang
neanias has quit [Client Quit]
neanias has joined #ruby-lang
neanias has left #ruby-lang [#ruby-lang]
centrx has joined #ruby-lang
ledestin has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
rmcafee has joined #ruby-lang
loincloth has joined #ruby-lang
momomomomo has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
agrinb has joined #ruby-lang
skade has joined #ruby-lang
agarie has joined #ruby-lang
<yorickpeterse> There used to be some web service where you could enter a Gem name and have it display all the Gems that depend on it, anybody happen to know the name of this service (or something similar)?
<whitequark> yorickpeterse: rubygems.org
* whitequark grins
agrinb has quit [Ping timeout: 255 seconds]
* yorickpeterse slaps whitequark with a large smelly trout
<whitequark> no, seriously, rubygems.org has that
<whitequark> but I'm not telling you the endpoint name.
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
robbyoconnor has joined #ruby-lang
<yorickpeterse> pffft
ur5us has joined #ruby-lang
symm- has joined #ruby-lang
<yorickpeterse> Hm, one is GemLou.pe but that has an expired SSL certificate
<yorickpeterse> whitequark: <3
<yorickpeterse> and well look at that, including the correct Gem I wanted to check :D
shinnya has joined #ruby-lang
ur5us has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
mehlah has joined #ruby-lang
alexju has joined #ruby-lang
zarubin has joined #ruby-lang
solars has quit [Ping timeout: 255 seconds]
shinnya has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gpg_ has quit [Quit: Page closed]
<yorickpeterse> Hm I think the latest Rubocop is fucked
agrinb has joined #ruby-lang
<yorickpeterse> It's telling me I can't use `raise` in an if statement
<yorickpeterse> or shit like this:
<yorickpeterse> lib/review_collector/source/hrs/collector.rb:121:38: C: Use next to skip iteration.
<yorickpeterse> ReviewIterator.new(page).each do |review|
<yorickpeterse> like
<yorickpeterse> I can't use .each now any more?
<yorickpeterse> wtf
sferik has joined #ruby-lang
<yorickpeterse> https://github.com/bbatsov/rubocop/issues/1225 OH fuck this bullshit
<yorickpeterse> it's literally throwing errors where adding next makes absolutely no sense
neanias has joined #ruby-lang
neanias has left #ruby-lang [#ruby-lang]
neanias has joined #ruby-lang
mistym has joined #ruby-lang
solars has joined #ruby-lang
ari-_-e has quit [Ping timeout: 255 seconds]
vikasyaligar has quit [Remote host closed the connection]
JohnFord has joined #ruby-lang
<yorickpeterse> One more cop to disable
<centrx> yorickpeterse, Is it mis-firing, or do you think the "next" rule is a bad rule?
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx> yorickpeterse, It seems like a good rule to me
<centrx> Good style to use next instead of an if-statement that implicitly returns nil
mistym has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 240 seconds]
<yorickpeterse> centrx: both
<yorickpeterse> There are some cases where it makes sense
<yorickpeterse> e.g. if you want to bail out very early in the loop's body without wrapping everything in a conditional
<yorickpeterse> But enforcing it everywhere, by default, even for code where it makes no sense, is bullshit
sferik has joined #ruby-lang
jxie has joined #ruby-lang
<yorickpeterse> I do understand why it fails: it's hard to measure complexity and determine if `next` is better or not
krasnus has quit [Quit: WeeChat 0.4.3]
<yorickpeterse> ah well, at least I can disable it
<centrx> I think the next style is better even in that simple example
<yorickpeterse> Based on what?
<yorickpeterse> I would argue that it's actually less pleasant to read
<yorickpeterse> (this is why I'm not a huge fan of style checkers)
<centrx> Using next means both less nesting and fewer lines
<centrx> and at what point does your three-line if-statement get rewritten into a next?
<centrx> How much needs to be added to it to qualify for the next, what's the cut-off?
neanias has left #ruby-lang [#ruby-lang]
<yorickpeterse> That is exactly why I think it shouldn't be enabled in its current state
jxie has quit [Ping timeout: 244 seconds]
peterhorne has joined #ruby-lang
<yorickpeterse> also it saves you at most 1 level of indentation, depending on if you wrote the conditional on a separate line
<yorickpeterse> and at most it saves you 2 lines of code, of which one is just `end`
<yorickpeterse> big whoop
jxie has joined #ruby-lang
peterhorne has quit [Client Quit]
<centrx> Yes, it is a matter of style
<centrx> I suppose
ari-_-e has joined #ruby-lang
<centrx> De gustibus non disputandum est
<karamazov> I'm having a bit of trouble understanding the inheritance of class variables. They go up the ladder before being defined?
<centrx> karamazov, Avoid class variables. Use class instance variables
<karamazov> Sure - I'm not trying to use them. I'd just like to understand them.
<centrx> karamazov, For exactly this reason, they are shared across the inheritance tree
<centrx> I am not sure of the order if a class variable is set in multiple classes
mistym has joined #ruby-lang
<karamazov> I'm going through "Eloquent Ruby" and that's the main gotcha, depending on the order of your require statements the class variable will change
<karamazov> I just didn't quite understand how that sort of inheritance works.
<yorickpeterse> karamazov: Yes, wherever defined they will overwrite previous instances in the same inheritence tree
jlovick has joined #ruby-lang
fullybaked has quit [Ping timeout: 256 seconds]
<yorickpeterse> so @@ defined in A::B::C::D overwrites the ones in A, A::B, A::B::C
<yorickpeterse> s/@@/@@foo/g
<karamazov> ^ what is that?
tejas-manohar_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<yorickpeterse> as in, class A, class A::B (B being nested in A)
<yorickpeterse> errrr shit
<yorickpeterse> derp
<yorickpeterse> I meant classes that inherit each other
<karamazov> was that vim?
<yorickpeterse> oh the s/
<yorickpeterse> it's a find-replace :P
<centrx> It's general Unix, found in sed and vim for example
<karamazov> haha that's what I thought, just wasn't sure.
<yorickpeterse> >> class A; @@foo = 10; end; class B < A; @@foo = 20; end; B.class_variable_get(:@@foo)
<eval-in> yorickpeterse => 20 (https://eval.in/174580)
<yorickpeterse> >> class A; @@foo = 10; end; class B < A; @@foo = 20; end; A.class_variable_get(:@@foo)
<eval-in> yorickpeterse => 20 (https://eval.in/174581)
<karamazov> Interesting
nathanstitt has joined #ruby-lang
tejas-manohar_ has quit [Client Quit]
<karamazov> In a sense - they act similar to global variables then? That sort of inheritance is pretty straightforward?
<karamazov> Except, they're not global and limited to the class.
<yorickpeterse> They are basically class/module level global variables
<yorickpeterse> However, they don't inherit up to Object I believe
<yorickpeterse> >> class A; @@foo = 10; end; class B < A; @@foo = 20; end; Object.class_variable_get(:@@foo)
<eval-in> yorickpeterse => uninitialized class variable @@foo in Object (NameError) ... (https://eval.in/174592)
<karamazov> That was quick.
<yorickpeterse> >> class A < Object; @@foo = 10; end; class B < A; @@foo = 20; end; Object.class_variable_get(:@@foo)
<eval-in> yorickpeterse => uninitialized class variable @@foo in Object (NameError) ... (https://eval.in/174594)
<yorickpeterse> yup, seems Object is left out
<workmad3> yorickpeterse: it's not that Object is left out, it's that they don't propagate up
<workmad3> yorickpeterse: so if you declared @@foo in class B before class A, they would be separate class vars
<yorickpeterse> eh, I don't think so
<yorickpeterse> >> class A < Object; end; class B < A; @@foo = 20; end; A.class_variable_get(:@@foo)
<eval-in> yorickpeterse => uninitialized class variable @@foo in A (NameError) ... (https://eval.in/174596)
<yorickpeterse> huh
<yorickpeterse> I always thought they did propagate up
<yorickpeterse> hmmm
<yorickpeterse> TIL
<workmad3> hmm... might have changed or I might be remembering incorrectly
<workmad3> as my simple check in IRB just failed to confirm that :)
<yorickpeterse> bbl, mandatory social activities
skade has quit [Quit: Computer has gone to sleep.]
Guest59959 has quit [Ping timeout: 260 seconds]
<workmad3> ok... so it looks like when A sets a class variable, it then overwrites down the tree
<karamazov> Doesn't it depend on the load order?
<karamazov> Oh wait - yeah, you're right.
tbuehlmann has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
<karamazov> workmad3: I'm getting some weird behavior where the child of a class is overwriting it
dangerousdave has quit []
sferik has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 255 seconds]
<workmad3> karamazov: that's also 'normal'
yawn has quit [Quit: yawn]
<karamazov> This
<workmad3> karamazov: class instance variables are the way to go ;)
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
<workmad3> karamazov: or inherited class ivars
<karamazov> workmad3: Yeah - I'm not trying to use them. I'd just like to understand them a bit more. For now, I'll just let it slide.
drjfreeze has joined #ruby-lang
<drjfreeze> Anyone know if printing ASCII control characters works on windows cmd?
<drjfreeze> puts "\e[41mH\e[40m"
bruno- has quit [Ping timeout: 250 seconds]
sferik has joined #ruby-lang
seamon has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
<sepp2k> drjfreeze: No, the Windows command prompt does not interpret ANSI escape sequences.
jam__ has quit [Quit: Connection closed for inactivity]
|jemc| has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
mistym_ has joined #ruby-lang
alexju has quit [Ping timeout: 260 seconds]
fullybaked has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
mistym has quit [Ping timeout: 245 seconds]
drjfreeze has left #ruby-lang [#ruby-lang]
stef1a has joined #ruby-lang
stamina has quit [Ping timeout: 260 seconds]
<stef1a> how do you assign and pass a block in the same line? for example, can i combine @num = rand(1..10); @num.times { do_thing } into one expression?
<ledestin> stef1a: (@num = …).times
<centrx> stef1a, You can chain as many methods as you want onto each other, "method chaining"
symm- has quit [Ping timeout: 240 seconds]
<stef1a> i see. thanks!
seamon has quit [Quit: Zzzzzzz]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seamon has joined #ruby-lang
skade has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
skade has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
arBmind1 has quit [Quit: Leaving.]
mikecmpbll has joined #ruby-lang
wallerdev has joined #ruby-lang
sam___ has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
__butch__ has joined #ruby-lang
<centrx> *as many methods as good taste will allow
yfeldblum has quit [Ping timeout: 255 seconds]
seamon has quit [Quit: Zzzzzzz]
ironhide_604 has quit [Ping timeout: 250 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
seamon has joined #ruby-lang
Squarepy has joined #ruby-lang
fullybaked has quit []
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
jbardin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
weems|mac has joined #ruby-lang
weems|mac has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
elia has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 255 seconds]
kek has quit [Remote host closed the connection]
tommylommykins has quit [Remote host closed the connection]
kek has joined #ruby-lang
sam___ has quit [Quit: Page closed]
kek has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby-lang
<karamazov> I can't seem to figure out why I can do array.map(&:to_s) - is it just a proc qwerk?
djbkd has joined #ruby-lang
dwknoxy has joined #ruby-lang
tommylommykins has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
<canton7> karamazov, look up symbol.to_proc
saarinen has quit [Quit: saarinen]
<karamazov> canton7: Thanks!
saarinen has joined #ruby-lang
mistym has joined #ruby-lang
mistym_ has joined #ruby-lang
vintik has joined #ruby-lang
wallerdev has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
mistym has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
solars has joined #ruby-lang
jbardin has quit [Quit: jbardin]
chouhoulis has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
ssam2 has quit [Quit: Leaving]
robmiller has quit [Quit: Leaving.]
AKASkip has joined #ruby-lang
karamazov has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev_ is now known as wallerdev
lguardiola has quit [Quit: ZNC - http://znc.in]
brianpWins has joined #ruby-lang
jbardin has joined #ruby-lang
JohnFord has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
lguardiola has joined #ruby-lang
postmodern has joined #ruby-lang
archpollux has joined #ruby-lang
<archpollux> hi all
<archpollux> i want to set up my project to bundle install into a local directory within the project and then make Bundle.require load gems from there, what's the easiest way to do this?
Cakey has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
<archpollux> do I need to provide :path for all gems in my Gemfile in order to achieve this?
<darix> archpollux: bundle install --path .bundle/
<darix> it will remember that path and automatically load from there
loincloth has quit [Remote host closed the connection]
karamazov has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
<archpollux> Bundle.require will load from there?
Cakey has quit [Ping timeout: 255 seconds]
<archpollux> darix: and where will it store that path?
<darix> .bundle/config
<archpollux> darix: ossum, thanks a lot!
djbkd has quit [Remote host closed the connection]
seamon has quit [Quit: Zzzzzzz]
agrinb has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
agrinb has joined #ruby-lang
davispuh has joined #ruby-lang
robmiller has joined #ruby-lang
robmiller has quit [Client Quit]
agrinb has quit [Ping timeout: 245 seconds]
seamon has joined #ruby-lang
havenwood has joined #ruby-lang
vintik has quit [Remote host closed the connection]
marr has quit [Read error: Connection reset by peer]
rafaelfranca has joined #ruby-lang
vintik has joined #ruby-lang
rafaelfranca has left #ruby-lang [#ruby-lang]
vintik has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
agrinb has joined #ruby-lang
astroTurf has quit [Remote host closed the connection]
astroTurf has joined #ruby-lang
mistym_ is now known as mistym
yfeldblum has quit [Ping timeout: 245 seconds]
vintik has joined #ruby-lang
vintik has quit [Remote host closed the connection]
astroTurf has quit [Ping timeout: 260 seconds]
vintik has joined #ruby-lang
stamina has joined #ruby-lang
David_ has joined #ruby-lang
loincloth has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
David_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ddd has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wsad has joined #ruby-lang
epitron has quit [Read error: Connection reset by peer]
<wsad> Need some info as to how I can record keystrokes in Ruby. The Ruby program/script will be running in the background.
<wsad> My environment is Mac
epitron has joined #ruby-lang
JohnFord has joined #ruby-lang
rmcafee has quit [Quit: rmcafee]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
brianpWins_ has joined #ruby-lang
brianpWins has quit [Ping timeout: 245 seconds]
brianpWins_ is now known as brianpWins
ascarter has joined #ruby-lang
stef1a has quit [Ping timeout: 260 seconds]
wsad has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
stamina has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
jlovick has quit [Quit: No Ping reply in 180 seconds.]
jlovick has joined #ruby-lang
djbkd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
seamon has quit [Quit: Zzzzzzz]
sarkyniin has quit [Quit: Quitte]
stef1a has joined #ruby-lang
havenwood has quit []
astroTurf has joined #ruby-lang
arBmind has joined #ruby-lang
marr has joined #ruby-lang
saarinen has joined #ruby-lang
elia has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
<karamazov> I'm trying to put what symbol#to_proc in my own words (personal reasons) does this make sense? https://gist.github.com/anonymous/74cd2edd64d77910e1a6
elia has quit [Client Quit]
<Mon_Ouie> It's not just about the conversion though
<karamazov> Yeah - I feel like I'm missing something
<Mon_Ouie> foo(:x.to_proc) and foo(&:x) are different because there's a difference between passing an argument as a block and passing a regular argument
isale-eko has joined #ruby-lang
<Mon_Ouie> foo(&x) also makes sense when x is already a proc
elia has joined #ruby-lang
<karamazov> I'm not sure I follow the first two cases. The second is has the Proc reference but the first doesn't?
futilegames has joined #ruby-lang
<karamazov> *second has
<Mon_Ouie> >> def foo(regular_argument, &block_argument); [regular_argument, block_argument]; end; foo(:x.to_proc)
<eval-in> Mon_Ouie => [#<Proc:0x41eadbfc>, nil] (https://eval.in/174678)
<Mon_Ouie> >> def foo(regular_argument, &block_argument); [regular_argument, block_argument]; end; foo(&:x)
<eval-in> Mon_Ouie => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/174679)
<Mon_Ouie> >> def foo(regular_argument = nil, &block_argument); [regular_argument, block_argument]; end; foo(&:x)
<eval-in> Mon_Ouie => [nil, #<Proc:0x40811c04>] (https://eval.in/174680)
<Mon_Ouie> When you use 'yield', the block argument will be called
agarie has quit [Ping timeout: 260 seconds]
<karamazov> Ah gotcha
szuletett has joined #ruby-lang
<karamazov> the & does that for you then?
yfeldblum has joined #ruby-lang
<Mon_Ouie> When you call a method, it a) converts the argument to a proc using to_proc (unless that argument is nil) and b) passes it as a block instead of a regular argument
<Mon_Ouie> When you define a method, &var can be used to store the block argument in a variable
saarinen has quit [Quit: saarinen]
futilegames has quit [Quit: futilegames]
<karamazov> Gotcha.
Squarepy has quit [Quit: Leaving]
dorei has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
astroTurf has quit [Remote host closed the connection]
davispuh has joined #ruby-lang
neanias has joined #ruby-lang
neanias has left #ruby-lang [#ruby-lang]
symm- has joined #ruby-lang
stef1a has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
wallerdev has joined #ruby-lang
szu_ has joined #ruby-lang
szuletett has quit [Ping timeout: 255 seconds]
archpollux has quit [Quit: Konversation terminated!]
yalue has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
ascarter has joined #ruby-lang
ascarter has quit [Client Quit]
astroTurf has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
seamon has joined #ruby-lang
djbkd has joined #ruby-lang
JohnFord has quit [Ping timeout: 240 seconds]
stef1a has joined #ruby-lang
agarie has joined #ruby-lang
leandros1 has quit [Quit: WeeChat 0.4.3]
saarinen has joined #ruby-lang
redhat_ is now known as webhat
_ht has quit [Remote host closed the connection]
astroTurf has quit []
jbardin has quit [Quit: jbardin]
dennus has joined #ruby-lang
bruno- has joined #ruby-lang
jbardin has joined #ruby-lang
dennus has quit []
bruno- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
arBmind1 has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
arBmind has quit [Ping timeout: 256 seconds]
centrx has joined #ruby-lang
wallerdev has joined #ruby-lang
szu_ has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Konversation terminated!]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jonathanmarvens has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
isale-eko has quit [Ping timeout: 255 seconds]
isale-eko has joined #ruby-lang
Atttwww has joined #ruby-lang
bruno- has joined #ruby-lang
ruby-lang176 has joined #ruby-lang
<ruby-lang176> Does anyone if the Ruby Mongo driver supports "exists?" see: http://docs.mongodb.org/manual/reference/operator/query/exists/ -- Is there something else I should be using to verify a document exists in a collection?
bruno- has quit [Ping timeout: 240 seconds]
isale-eko has quit [Client Quit]
saarinen has quit [Quit: saarinen]
davispuh has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
bruno- has joined #ruby-lang
madoxer has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
djbkd has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
|jemc| has quit [Quit: WeeChat 0.4.3]
mehlah has joined #ruby-lang
ur5us has joined #ruby-lang
saarinen has joined #ruby-lang
rue_XIV has quit [Ping timeout: 250 seconds]
elia has joined #ruby-lang
|jemc| has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
yfeldbl__ has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
agrinb has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 256 seconds]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
saarinen has quit [Quit: saarinen]
madoxer has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has quit [Ping timeout: 250 seconds]
harshp__ has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
ruby-lang176 has quit [Quit: Page closed]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
djbkd has quit [Ping timeout: 255 seconds]
x0f has quit [Ping timeout: 250 seconds]
yfeldbl__ has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
saarinen has joined #ruby-lang
x0f has joined #ruby-lang
InfraRuby has joined #ruby-lang
havenwood has joined #ruby-lang
hlowe has joined #ruby-lang
vintik has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
agarie has quit [Quit: Leaving...]
cmhobbs has quit [Remote host closed the connection]
agrinb has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
yfeldblum has joined #ruby-lang
Blaguvest has quit []
stef1a has quit [Ping timeout: 256 seconds]
Sgeo has joined #ruby-lang
agrinb has quit [Ping timeout: 240 seconds]
Soilent has quit [Read error: Connection reset by peer]
Soilent has joined #ruby-lang
harshp_ has joined #ruby-lang
hlowe has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
polyidus has joined #ruby-lang
polyidus has quit [Max SendQ exceeded]
sepp2k has joined #ruby-lang
ascarter has joined #ruby-lang
musl has quit [Quit: WeeChat 0.4.3]
polyidus has joined #ruby-lang
symm- has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
MichD is now known as michd
nathanstitt has quit [Quit: I growing sleepy]
joast has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
symm- has joined #ruby-lang
closer has quit [Ping timeout: 272 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
closer has joined #ruby-lang
jlovick has quit [Ping timeout: 256 seconds]
havenwood has quit []
harshp_ has quit [Ping timeout: 260 seconds]
snoopybbt has joined #ruby-lang
szu_ has joined #ruby-lang
stardiviner has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 250 seconds]
sirene has quit [Remote host closed the connection]
harshp_ has joined #ruby-lang
weems|mac has joined #ruby-lang
havenwood has joined #ruby-lang
polyidus has quit [Read error: Connection reset by peer]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
karamazov has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
vintik has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
banister has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
saarinen has quit [Quit: saarinen]
musl has joined #ruby-lang
kyb3r_ has joined #ruby-lang
elia has quit [Quit: (IRC Client: textualapp.com)]
jonathanmarvens has quit [Remote host closed the connection]
centrx has joined #ruby-lang
centrx has quit [Client Quit]
skade has joined #ruby-lang
sMecKs has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
mikecmpbll has quit [Quit: i've nodded off.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
mikecmpbll has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmac_ has quit [Remote host closed the connection]
harshp_ has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby-lang
stardiviner has joined #ruby-lang
|jemc| has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
karamazov has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
szu_ has quit [Quit: Leaving]
skade has quit [Client Quit]
stef1a has joined #ruby-lang
sharpmachine has joined #ruby-lang
landodger has quit [Remote host closed the connection]
stamina has joined #ruby-lang