apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
osvico has joined #ruby
icecandy has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
brianherman has quit [Quit: Leaving]
Divinite has quit [Remote host closed the connection]
netto has joined #ruby
brennanMKE has joined #ruby
DonRichie has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
nateberkopec has joined #ruby
LiquidIn1ect has joined #ruby
miskander has quit [Quit: miskander]
LiquidIn1ect has quit [Client Quit]
nateberkopec has quit [Client Quit]
dustmason has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LiquidInsect has quit [Ping timeout: 252 seconds]
LiquidIn1ect has joined #ruby
LiquidIn1ect is now known as LiquidInsect
icecandy has joined #ruby
angusiguess has joined #ruby
netto has quit [Quit: netto]
mikestok has joined #ruby
IceyEC has joined #ruby
<agarie> hey, would you consider bad style for an object being printed in multiple lines? i.e. `puts NMatrix` show a matrix-like output, with indexes and stuff?
<agarie> I'm discussing this and the other guy says he "never saw to_s spanning multiple lines" and I want to know other's opinions on the subject.
jdunck has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
jacktrick has quit [Quit: Leaving]
splittingred has joined #ruby
jonahR has left #ruby [#ruby]
RORgasm_ has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
netto has joined #ruby
jovy88 has joined #ruby
tundrax has joined #ruby
slainer68 has joined #ruby
tundrax has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
RORgasm_ has quit [Ping timeout: 260 seconds]
Bry8Star has joined #ruby
zmoazeni has joined #ruby
idkazuma has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
IceyEC has quit [Quit: IceyEC]
joeybutler1 has joined #ruby
facepalm has quit [Quit: Page closed]
chipotle_ has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
tundrax has joined #ruby
niceguy1234 has quit [Ping timeout: 240 seconds]
eka has quit [Quit: Computer has gone to sleep.]
netto has quit [Quit: netto]
ToApolytoXaos has quit [Quit: Leaving]
jdunck has quit [Quit: Computer has gone to sleep.]
iPhoneMRZ has joined #ruby
ramblex has quit [Remote host closed the connection]
ZachBeta has joined #ruby
joeybutler1 has quit [Quit: Leaving.]
heftig has quit [Quit: Quitting]
rburton- has joined #ruby
heftig has joined #ruby
RomainT has joined #ruby
blandflakes has joined #ruby
mneorr has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
RomainT has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pcarrier has joined #ruby
icecandy has quit [Remote host closed the connection]
LilithX has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Remote host closed the connection]
rickruby has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
zmoazeni has left #ruby [#ruby]
jdunck has joined #ruby
Gooder` has joined #ruby
kirun has quit [Quit: Client exiting]
zmoazeni has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
hashpuppy has joined #ruby
hashpuppy has left #ruby [#ruby]
frazras has quit [Quit: frazras]
Gooder has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
netto has joined #ruby
kofno has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
<jblack> Your output should be in a style that's most readable. =)
rickruby has quit [Remote host closed the connection]
nickchow has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
kil0byte has quit [Remote host closed the connection]
Volatile has quit [Quit: Lost terminal]
kofno has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
RomainT has joined #ruby
rickruby has joined #ruby
Siward has joined #ruby
<Siward> Hello. I'm following a Ruby tutorial and one of the early lessons requires the execution of 'irb' in the command line. I installed ruby installer, and the command prompt doesn't seem to work.
netto has quit [Quit: netto]
zmoazeni has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
zmoazeni has joined #ruby
zmoazeni has quit [Remote host closed the connection]
<jblack> type "which irb" and "which ruby" please.
<jblack> do they both say /usr/bin?
<jblack> (/usr/bin/irb and /usr/bin/ruby to be mroe clear)
<Siward> No. I'm pretty new at this, so I'm afraid I don't really know the specifics.
<jblack> what answer do you get?
tundrax has quit [Remote host closed the connection]
<Siward> When I type 'irb' into the command line?
<jblack> sure.
djwonk has joined #ruby
<jblack> which operating system are you using?
RomainT has quit [Ping timeout: 245 seconds]
nickchow has quit [Quit: Leaving...]
lewix has quit [Remote host closed the connection]
<Siward> Windows 7. It just says it's not recongnized
<jblack> Oh, sorry. I have no idea how to manage ruby under windows.
mercwithamouth has quit [Ping timeout: 245 seconds]
love_color_text has quit [Read error: Connection reset by peer]
<Siward> Hm, alright.
love_color_text has joined #ruby
<C0deMaver1ck> Siward, I use windows on a daily basis but it's a terrible place to write Ruby
<C0deMaver1ck> I'd suggest setting up a Linux VM
<jblack> You might even consider putting together a linux workstation if you're going to be doing a lot of development.
nickchow has joined #ruby
ner0x has quit [Quit: Leaving]
<Siward> That isn't really a viable option for me at the moment. I agree I'll eventually have to get a linux setup. Any idea how I can fix my current problem, C0deMaver1ck?
<C0deMaver1ck> you should have irb in your start menu somewhere
<C0deMaver1ck> since you used the installer
<jblack> I wonder how ruby is under cygwin
<C0deMaver1ck> icky
<C0deMaver1ck> everything unixy under windows is icky
<Siward> Yeah, it is. But according to this tutorial typing 'irb' into the command line should bring it up.
<jblack> Yeah.
<jblack> did you reboot yet?
Gooder`` has joined #ruby
<C0deMaver1ck> Siward, that's if you added it to your path or the installer did
<jblack> surely the PATH was updated, and that may not take effect until reboot in windows
<C0deMaver1ck> jblack, windows auto reloads the path if you modify it now
<C0deMaver1ck> unless he's on something like XP
<jblack> He said 7... but... for the heck of it, you could check the path with echo $PATH,
<Siward> Just put that in the command line?
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Gooder` has quit [Ping timeout: 245 seconds]
DonRichie has quit [Quit: Verlassend]
<jblack> Yes.
Nisstyre-laptop has joined #ruby
<Siward> It just says $path.
angusiguess has quit [Ping timeout: 255 seconds]
mklappst_ has joined #ruby
netto has joined #ruby
<jblack> in windows it's echo %PATH%
<Siward> Okay, c:\ruby\bin is in the PATH
TJNII has joined #ruby
<Siward> Okay, so it says 'DL is deprecated Please use Fiddle'
MrZYX is now known as MrZYX|off
banjara has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Quit: pskosinski]
jacobw has quit [Quit: WeeChat 0.4.0]
Nisstyre-laptop is now known as Nisstyre
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
xardas has quit [Ping timeout: 240 seconds]
greenarrow has joined #ruby
mattbl has joined #ruby
greenarrow has quit [Client Quit]
ritek has quit [Ping timeout: 272 seconds]
greenarrow has joined #ruby
rburton- has quit [Quit: Leaving...]
greenarrow has quit [Client Quit]
rakl has quit [Quit: sleeping]
greenarrow has joined #ruby
peta_ has quit [Quit: peta_]
mercwithamouth has joined #ruby
kil0byte has joined #ruby
brianpWins has quit [Quit: brianpWins]
idkazuma has joined #ruby
djwonk has quit [Quit: djwonk]
s2013_ has joined #ruby
mixel has quit [Quit: mixel]
s2013 has quit [Ping timeout: 276 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
poga has joined #ruby
jbueza has joined #ruby
ritek has joined #ruby
love_color_text has quit [Ping timeout: 246 seconds]
forced_request has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
ossareh has joined #ruby
emmanuelux has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
hiyakashi has joined #ruby
s2013_ has quit [Read error: No route to host]
ossareh has quit [Client Quit]
ossareh has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
ossareh has quit [Client Quit]
kofno has quit [Remote host closed the connection]
ossareh has joined #ruby
banjara has quit [Quit: Leaving.]
robustus has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
netto has quit [Quit: netto]
GeissT has joined #ruby
kil0byte has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
ariedler has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
jovy88 has joined #ruby
brianpWins has joined #ruby
cantonic_ has joined #ruby
Palantir has joined #ruby
tundrax has joined #ruby
RORgasm_ has joined #ruby
mattbl has quit [Quit: Leaving]
RomainT has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
slainer68 has quit [Remote host closed the connection]
locriani has joined #ruby
shevy has quit [Ping timeout: 256 seconds]
johnnyfuchs has joined #ruby
luckyruby has joined #ruby
RORgasm_ has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
angusiguess has joined #ruby
RomainT has quit [Ping timeout: 245 seconds]
netto has joined #ruby
jduan1981 has joined #ruby
idkazuma has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
yfeldblum has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
Siward has quit []
shevy has joined #ruby
mklappst_ has quit [Remote host closed the connection]
pcarrier has quit [Ping timeout: 255 seconds]
kofno has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
brennanMKE has joined #ruby
pcarrier has joined #ruby
felixjet has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mercwithamouth has joined #ruby
jesly has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
psyprus_ has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
jduan1981 has joined #ruby
kinginky has quit [Ping timeout: 245 seconds]
Palantir has quit [Ping timeout: 248 seconds]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
mahmoudimus has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
netto has quit [Quit: netto]
slainer68 has joined #ruby
ARCADIVS has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
adamjleonard has joined #ruby
kinginky has joined #ruby
rburton- has joined #ruby
aapzak has quit [Ping timeout: 258 seconds]
slainer68 has quit [Ping timeout: 272 seconds]
aapzak has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
_veer has joined #ruby
mixel has joined #ruby
adamjleonard has quit [Quit: Leaving...]
mklappst_ has joined #ruby
kofno has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Heero has joined #ruby
mercwithamouth has joined #ruby
lewis has joined #ruby
netto has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
justsee has quit [Ping timeout: 264 seconds]
jesly has quit [Ping timeout: 256 seconds]
rakl has joined #ruby
mklappst_ has quit [Ping timeout: 246 seconds]
cod3r has quit [Quit: WeeChat 0.4.0]
horofox_ has quit [Quit: horofox_]
brianpWins has quit [Quit: brianpWins]
nickchow has quit [Quit: Leaving...]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
mootpointer has joined #ruby
akashj87 has joined #ruby
huoxito has joined #ruby
lewis has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Mattx has joined #ruby
akashj87_ has joined #ruby
akashj87_ has quit [Read error: Connection reset by peer]
danneu has joined #ruby
symme7ry has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Matip has quit [Ping timeout: 256 seconds]
akashj87 has quit [Ping timeout: 248 seconds]
danneu1 has quit [Ping timeout: 251 seconds]
_veer has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
_veer has joined #ruby
sayan has joined #ruby
kofno has quit [Remote host closed the connection]
tundrax has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
nickchow has joined #ruby
DementedInsanity has quit [Ping timeout: 246 seconds]
_veer has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_veer has joined #ruby
quantorus has joined #ruby
netto has quit [Quit: netto]
shelducks has joined #ruby
symme7ry has joined #ruby
tundrax has joined #ruby
quantorus has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 245 seconds]
daidoji has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
shelducks has quit [Disconnected by services]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
mercwithamouth has quit [Ping timeout: 272 seconds]
lewis has joined #ruby
bradhe has quit [Remote host closed the connection]
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
danneu has left #ruby [#ruby]
freakazoid0223 has quit [Ping timeout: 272 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
jnoob22 has quit [Read error: Connection reset by peer]
jnoob22_ has joined #ruby
Umren has joined #ruby
threesome has joined #ruby
hkal has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
nickchow has quit [Quit: Linkinus - http://linkinus.com]
jdunck has joined #ruby
sayan has joined #ruby
yacks has quit [Read error: Connection reset by peer]
adman65 has quit [Quit: adman65]
bean__ has quit [Quit: Computer has gone to sleep.]
allure has joined #ruby
blandflakes has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
sambao21 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
andrew12 has quit [Ping timeout: 258 seconds]
chrishunt has joined #ruby
andrew12 has joined #ruby
yacks has joined #ruby
andrew12 has quit [Changing host]
andrew12 has joined #ruby
splittingred has quit [Quit: splittingred]
bean__ has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
Faris has quit [Ping timeout: 252 seconds]
luckyruby has quit [Remote host closed the connection]
jovy88 has joined #ruby
bradhe has joined #ruby
mixel has quit [Quit: mixel]
RORgasm has quit [Read error: Operation timed out]
tundrax has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
Z_Mass has joined #ruby
rickruby has joined #ruby
BizarreCake has joined #ruby
hogeo has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
yacks has quit [Quit: Leaving]
hogeo_ has quit [Ping timeout: 252 seconds]
freeayu has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
rickruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
netto has joined #ruby
adamjleonard has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
idkazuma has joined #ruby
idkazuma has quit [Remote host closed the connection]
freeayu has joined #ruby
eldariof has joined #ruby
freeayu__ has joined #ruby
ananthakumaran has joined #ruby
IcyDragon has quit [Quit: Space~~~]
rickruby has quit [Remote host closed the connection]
mootpointer has quit [Quit: Computer has gone to sleep.]
Mattx has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
ritek has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
netto has quit [Quit: netto]
jduan1981 has quit [Ping timeout: 240 seconds]
bubblehead has quit [Remote host closed the connection]
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
johnnyfuchs has joined #ruby
sayan has joined #ruby
Meeh is now known as Meeh_afk
bean__ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
tundrax has joined #ruby
Hien has quit [Quit: leaving]
Hien has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
yacks has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
hiyakashi has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
s2013 has quit [Ping timeout: 260 seconds]
hkal has quit [Quit: WeeChat 0.4.0]
tabolario has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tundrax has quit [Ping timeout: 246 seconds]
ritek has joined #ruby
tjbiddle has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
idkazuma has joined #ruby
tommyvyo has quit [Quit:]
jduan1981 has joined #ruby
paolooo has joined #ruby
Tobarja has joined #ruby
<Tobarja> is Class#[] usually the same as Class#slice ?
danslo has quit [Quit: danslo]
jdunck has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
neurone-1337 has joined #ruby
<heftig> Tobarja: Class doesn't implement either [] or slice
robert_ has joined #ruby
DementedInsanity has joined #ruby
DementedInsanity has quit [Changing host]
DementedInsanity has joined #ruby
s2013 has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
poga has quit [Remote host closed the connection]
poga has joined #ruby
nezumi has joined #ruby
sayan has quit [Read error: Connection reset by peer]
poga has quit [Remote host closed the connection]
poga has joined #ruby
neurone-1337 has quit [Ping timeout: 245 seconds]
mklappst_ has joined #ruby
Arafangion has joined #ruby
<Arafangion> Guys, I'm confused about how ruby binds to variables.
<Arafangion> Does it bind to the variable objects, or to the variable names?
akashj87 has joined #ruby
<Arafangion> I ask because given something like: [1,2,3,4].each{|i| foo = Foo.new; [4,3,2,1].each{|j| foo.invoke();}}
<Arafangion> For which 'foo' does that inner scope refer to? (Particularly if it's a block that is executed later... That example there was very contrived)
mercwithamouth has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
charliesome has joined #ruby
<Arafangion> A more precise example is something like: @CONF.each do |conf| config = Config.new; Rake::Task.define_task 'name' do config.invoke(); end; end;
rickruby has joined #ruby
<heftig> Arafangion: the names
rickruby has quit [Remote host closed the connection]
<Arafangion> heftig: So, if I wanted the values to be bound instead, what should I do? Define a mapping?
generali_ has quit [Remote host closed the connection]
<heftig> not sure what exactly you want to do
<Arafangion> heftig: I want the corresponding 'config' or 'foo' to be used for the given block.
<Arafangion> heftig: Not whatever happens to be the value, but the value as it was defined at the time the block was defined.
<heftig> the variable keeps living
<heftig> because the block still references it
tjbiddle has quit [Quit: tjbiddle]
<Arafangion> heftig: Well, in the second example there...
<Arafangion> heftig: I want the first instance of the inner block to be bound to the first instance of 'config'.
<heftig> sure
<Arafangion> heftig: And the second instance of hte inner block to be bound to the second instance of 'config', because that was the object at that time.
akashj87_ has joined #ruby
<heftig> sure, that works
akashj87_ has quit [Read error: Connection reset by peer]
<heftig> every invocation of the block creates a new "config"
bradhe has quit [Ping timeout: 264 seconds]
<Arafangion> heftig: But what about the inner-block?
<heftig> references the same context
s2013 has quit [Ping timeout: 240 seconds]
<Arafangion> So it's slightly more similar to dynamic scoping, in that respect, I guess.
<heftig> it's all dynamic
<Arafangion> Ruby does not use lexical scoping?
<heftig> only for constants, i think
rickruby has joined #ruby
<heftig> well, and self.
crazysim has quit [Ping timeout: 272 seconds]
akashj87 has quit [Ping timeout: 248 seconds]
<Arafangion> Hmm, very useful to know - thanks.
<heftig> though there are ways to change the "self" of a scope
<heftig> instance_exec is one
<Arafangion> One weird thing I have noticed is that I have a variable called 'name', which contains a string.
<Arafangion> And a variable called 'config', which contains an object.
<Arafangion> They appear to be bound differently to the inner scope.
<heftig> hmm?
johnnyfuchs has quit [Remote host closed the connection]
<heftig> "name" might also be a method call
<Arafangion> No, it's definitely a variable, fairly sure.
<Arafangion> https://gist.github.com/anonymous/154a5a5751a4d90b5ada <-- That's the code I'm working on.
<Arafangion> (It's ugly as heck, it's a work in progress)
<heftig> and the problem is?
<Arafangion> The line when I run it (amongst many lines), is: Running task sqlite:debug, which is test:debug
<Arafangion> And I'm rather confused how those could differ.
mklappst_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<Arafangion> config.name is the same as 'name' there, until that last block gets executed by Rake::Task.define_task.
browndawg has joined #ruby
<Arafangion> heftig: Not asking you to read and debug it for me, just wanting to know if my problem is scoping :)
tjbiddle has joined #ruby
joeybutler1 has joined #ruby
<heftig> hm
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<heftig> nothing is obvious to me
<Arafangion> Hmm, so the bug is likely elsewhere - thanks, that's helpful, too.
mootpointer has joined #ruby
<Arafangion> Clearly time to start decomposing this mess. :)
mneorr has joined #ruby
rsahae has joined #ruby
tundrax has joined #ruby
slippyd has quit [Ping timeout: 264 seconds]
chandankumar has joined #ruby
icecandy has joined #ruby
<heftig> Arafangion: ah, sorry. i got my terms mixed up
<heftig> Arafangion: local variables are lexically scoped
<heftig> except all this closure business can make that hard to see
tjbiddle has quit [Quit: tjbiddle]
<Arafangion> I'm noticing - moving things to separate functions, in an attempt to keep things smaller.
<Arafangion> Which should make it easier.
<heftig> 3.times { foo = 3 }
<heftig> every invocation of the block creates a new variable "foo"
<Arafangion> 'foo' there is local to that block, I believe?
<heftig> foo = 1; 3.times { foo = 3 }
somasonic has left #ruby ["http://google.com"]
<heftig> here it's just one "foo" variable
<Arafangion> Hmm, and a dynamic one at that, or is it still lexical?
s2013 has joined #ruby
<heftig> still lexical
<Arafangion> Is it possible to find out, at runtime, where a particular variable was created?
tundrax has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
<heftig> [1,2,3].map { |x| foo = x; proc { puts foo } }.each(&:call)
<heftig> foo = 0; [1,2,3].map { |x| foo = x; proc { puts foo } }.each(&:call)
<heftig> the "map" creates 3 closures and returns them, then they get called in the "each"
gadgetoid has joined #ruby
<heftig> Arafangion: no, i don't think so
BizarreCake has quit [Quit: Leaving]
Vivekananda has quit [Read error: Connection reset by peer]
ritek has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 264 seconds]
<Arafangion> That makse sense so far.
shammancer has quit [Quit: Leaving.]
shammancer has joined #ruby
guiambros has joined #ruby
<Arafangion> Ok, I'm still confused with scoping. I've refactored and moved the problematic code to a smaller routine, and mangled the names for good measure.
<Arafangion> But it's still failing - https://gist.github.com/anonymous/6eaf3b1cbf291f35f8d3
<Arafangion> The *second* 'throw' is being hit, within the closure.
<Arafangion> Surely, if the second one is being hit, the first one should have been hit, too?
<heftig> Arafangion: by the way, "raise" throws exceptions, not "throw"
<Arafangion> Interesting.
<heftig> throw/catch is orthogonal, and can throw arbitrary objects
<heftig> but the exception stuff is raise/rescue (and ensure)
bradhe has joined #ruby
RORgasm_ has joined #ruby
<Arafangion> Which explains why that still manages to throw the exception - which to my mind, is an unrecoverable error.
rickruby has quit [Remote host closed the connection]
ossareh has quit [Ping timeout: 245 seconds]
<heftig> a "throw" without a matching "catch" raises an ArgumentError exception
casheew has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
casheew_ has joined #ruby
<heftig> (if a throw has a matching catch, execution jumps to the end of the catch)
<Arafangion> I've changed my code locally to use raise instead - the output is slightly cleaner, but there is no functional difference.
<Arafangion> jJC2config.name is still inexplicibly different to jJC2name.
<heftig> yeah, the bug is somewhere else
gungor has joined #ruby
ritek has joined #ruby
wyhaines has quit [Remote host closed the connection]
<heftig> maybe you're mutating your config object somewhere you don't expect
Cultofmetatron has quit [Remote host closed the connection]
RORgasm_ has quit [Ping timeout: 268 seconds]
<Arafangion> The only place that it should be mutated, is right after I use BtaskConfiguration.new.
<Arafangion> (Which is what provides the config)
b0oh has joined #ruby
<Arafangion> I should put the washing out, maybe I'll come back with a cleaner head - if not, I might have to unit-test my <censored> build scripts.
RomainT has joined #ruby
<Arafangion> heftig: Thanks for your help. :)
<Arafangion> Learnt two very important things in the process!
mneorr has quit [Remote host closed the connection]
LnL has quit [Quit: LnL]
<heftig> Arafangion: throw/catch really doesn't work as exceptions - it works at the level of the instance, so you can only catch the exact object thrown
divout has joined #ruby
<heftig> Arafangion: not even catch("3") { throw "3" } works, as you have two different string instances
Arafangion has quit [Read error: Connection reset by peer]
<heftig> (it wouldn't error with 3 or :"3", though, as those are singletons)
joeybutler1 has quit [Read error: Connection reset by peer]
intrin has joined #ruby
joeybutler11 has joined #ruby
symme7ry has quit [Ping timeout: 256 seconds]
<Boohbah> i use a begin; rescue; end block for exception handling
RomainT has quit [Ping timeout: 252 seconds]
indyrl has joined #ruby
divout has quit [Client Quit]
divout has joined #ruby
notrin has quit [Ping timeout: 268 seconds]
kofno has joined #ruby
Arafangion has joined #ruby
SCommette has joined #ruby
b0oh has quit [Quit: Leaving.]
subbyyy has quit [Ping timeout: 256 seconds]
gungor has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
b0oh has joined #ruby
<Arafangion> Hey, I found something curious - I neglected to mention that I was running Ruby 1.8.7 - somehow didn't htink it was relevant.
kofno has quit [Ping timeout: 257 seconds]
<Arafangion> I seem to think that the scoping rules were changed in Ruby 1.9.x?
<Arafangion> (Even so, it still seems odd)
SCommette has quit [Quit: SCommette]
Spooner has joined #ruby
wallerdev has quit [Quit: wallerdev]
lewis has quit [Ping timeout: 252 seconds]
Z_Mass has quit [Quit: Leaving]
indyrl has left #ruby [#ruby]
rsahae has quit [Quit: rsahae]
bubblehead has joined #ruby
brianpWins has joined #ruby
jduan1981 has quit [Quit: jduan1981]
szymonatportland has joined #ruby
rickruby has joined #ruby
psyprus_ has quit [Ping timeout: 258 seconds]
bubblehead has quit [Ping timeout: 276 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
psyprus has joined #ruby
mneorr_ has joined #ruby
browndawg1 has joined #ruby
leonidlm has joined #ruby
lewis has joined #ruby
arietis has joined #ruby
rickruby has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 245 seconds]
Cultofmetatron has joined #ruby
celinedior has joined #ruby
mneorr_ has quit [Ping timeout: 252 seconds]
eliasp has quit [Ping timeout: 248 seconds]
s2013 has quit [Ping timeout: 256 seconds]
r0bgleeson has quit [Ping timeout: 276 seconds]
icecandy has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 264 seconds]
icecandy has joined #ruby
eliasp has joined #ruby
__alpaca has joined #ruby
Arafangion has quit [Read error: Connection reset by peer]
JimmyNeutron has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
jovy88 has quit [Read error: Connection reset by peer]
symme7ry has joined #ruby
jovy88 has joined #ruby
b0oh has quit [Quit: Leaving.]
RomainT has joined #ruby
RomainT has left #ruby [#ruby]
rakl has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
chandankumar has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
szymonatportland has quit [Quit: leaving]
agarie_ has joined #ruby
adman65 has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
mklappst_ has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
aapzak has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
mklapps__ has joined #ruby
rakl has quit [Quit: sleeping]
mklappst_ has quit [Ping timeout: 245 seconds]
eldariof has quit []
eldariof has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
sayan has joined #ruby
aapzak has joined #ruby
chandankumar has joined #ruby
Beoran_ has joined #ruby
akashj87 has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
joeybutler11 has quit [Quit: Leaving.]
joeybutler1 has joined #ruby
mklapps__ has quit [Ping timeout: 245 seconds]
mklappst_ has joined #ruby
CalebMingle has joined #ruby
brianpWins has quit [Quit: brianpWins]
Beoran__ has quit [Ping timeout: 260 seconds]
rakl has joined #ruby
Meeh_afk is now known as Meeh
crazysim has joined #ruby
Astral__ has quit [Ping timeout: 245 seconds]
Astralum has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
mneorr_ has joined #ruby
huoxito has quit [Quit: Leaving]
mklappst_ has quit [Ping timeout: 272 seconds]
gungor has joined #ruby
lusory has quit [Quit: leaving]
chandankumar has quit [Quit: Leaving]
sayan has quit [Ping timeout: 252 seconds]
atno has joined #ruby
chandankumar has joined #ruby
chandankumar has quit [Remote host closed the connection]
lusory has joined #ruby
__alpaca has quit [Remote host closed the connection]
joeybutler1 has quit [Quit: Leaving.]
joeybutler1 has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
mengu has quit [Quit: This computer has gone to sleep]
danslo has joined #ruby
icecandy has quit [Remote host closed the connection]
sirpillow has joined #ruby
mneorr_ has quit [Remote host closed the connection]
sirpillow has left #ruby [#ruby]
sayan has joined #ruby
icecandy has joined #ruby
rakl has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
rakl has joined #ruby
RORgasm_ has joined #ruby
rton has joined #ruby
MrZYX|off is now known as MrZYX
lxsameer has joined #ruby
keymone has joined #ruby
eliasp has quit [Read error: No route to host]
eliasp has joined #ruby
workmad3 has joined #ruby
rakl has quit [Ping timeout: 245 seconds]
RORgasm_ has quit [Ping timeout: 245 seconds]
qualiabyte has quit [Quit: Leaving]
gungor has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Bry8Star has quit [Quit:]
rakl has joined #ruby
aedornm has quit [Remote host closed the connection]
eliasp has quit [Ping timeout: 276 seconds]
joeybutler1 has quit [Quit: Leaving.]
snuglepuss has quit [Remote host closed the connection]
emergion has joined #ruby
mrfoo has joined #ruby
brunoro has quit [Ping timeout: 240 seconds]
adman65 has quit [Quit: adman65]
LnL has joined #ruby
threesome has joined #ruby
eliasp has joined #ruby
joeybutler1 has joined #ruby
rakl has quit [Quit: sleeping]
idkazuma has quit [Remote host closed the connection]
casheew_ has quit [Read error: Connection reset by peer]
forlin has joined #ruby
Neomex has quit [Quit: Neomex]
gungor has joined #ruby
Bry8Star has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
idkazuma has joined #ruby
ramblex has joined #ruby
gungor has quit [Remote host closed the connection]
casheew has joined #ruby
akashj87 has quit [Quit: Leaving]
gungor has joined #ruby
adman65 has joined #ruby
t_p has joined #ruby
k610 has joined #ruby
akashj87 has joined #ruby
marr has joined #ruby
marr has quit [Excess Flood]
lewis has quit [Remote host closed the connection]
rickruby has joined #ruby
AgentWillyWonka has quit [Read error: Connection reset by peer]
Jalada has quit [Ping timeout: 246 seconds]
LennyLinux has joined #ruby
nignaztic has joined #ruby
airtonix has quit [Quit: No Ping reply in 180 seconds.]
wargasm1 has joined #ruby
airtonix has joined #ruby
wargasm has quit [Ping timeout: 246 seconds]
nazty has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
gungor has quit [Remote host closed the connection]
<shevy> I hate catch/throw
<shevy> it somehow never fits with the rest of the ruby code
Jalada has joined #ruby
rickruby has quit [Ping timeout: 272 seconds]
celinedior has quit [Quit: celinedior]
DementedInsanity has quit [Quit: Leaving]
zigomir has joined #ruby
marr has joined #ruby
marr has quit [Excess Flood]
manish has joined #ruby
__alpaca has joined #ruby
__alpaca has quit [Read error: Connection reset by peer]
__alpaca has joined #ruby
<ChristianS> shevy: why do you use it?
<manish> hi can anybody tell me developing native andriod app using ruby is possible or not
rburton- has quit [Quit: Leaving...]
adambeynon has joined #ruby
G33kr has joined #ruby
idkazuma has quit [Remote host closed the connection]
gungor has joined #ruby
<ramblex> manish, rubuto.org?
G33kr has quit [Remote host closed the connection]
<ramblex> *ruboto
Lockzi has left #ruby [#ruby]
browndawg1 has quit [Ping timeout: 246 seconds]
symme7ry has quit [Ping timeout: 252 seconds]
Gooder`` has quit [Remote host closed the connection]
BizarreCake has joined #ruby
<manish> ramblex: can i use rhodes in linux?
t_p has quit [Read error: Connection reset by peer]
framling has quit [Quit: Lost terminal]
framling has joined #ruby
Qwak has joined #ruby
yashshah has quit [Quit: Konversation terminated!]
paolooo has joined #ruby
ToApolytoXaos has joined #ruby
gungor has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 264 seconds]
danslo has quit [Quit: danslo]
sleetdrop has joined #ruby
francisfish has joined #ruby
jarin has quit [Ping timeout: 248 seconds]
horofox has joined #ruby
browndawg has joined #ruby
tundrax has joined #ruby
adman65 has quit [Quit: adman65]
jacobw has joined #ruby
manish has quit [Quit: Leaving]
LennyLinux has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 248 seconds]
Cache_Money has joined #ruby
<Cache_Money> What do I need to do to get this gem https://github.com/subosito/gingerice to work in my irb http://pastie.org/7732499
<shevy> ChristianS I never use it :D
<shevy> ChristianS just as heftig and Arafangion mentioned it
<shevy> I think I can only remember rubygame having used catch/throw lately
<shevy> and rubygame died! so there you see what happens if you use catch/throw :P
m8 has joined #ruby
<MrZYX> catch/throw is the new goto! xD
<ChristianS> MrZYX: exactly, just what i thought
<MrZYX> Cache_Money: what's your ruby version?
<Cache_Money> MrZYX: 1.8.7
<MrZYX> consider upgrading, support for 1.8 will end very soon
<MrZYX> on 1.8 you need to do require 'rubygems' before you can use gems
s1n4 has joined #ruby
s1n4 has quit [Changing host]
s1n4 has joined #ruby
s1n4 has left #ruby [#ruby]
slmorton has joined #ruby
<SAUCYSALAMANDER> shevy, chingu/gosu is the way to go now :P
emergion has quit [Quit: Computer has gone to sleep.]
<shevy> SAUCYSALAMANDER I suppose so... I did not have much time to dig into that
<shevy> have to maintain my gems first :\ and finish some annoying rewrites
primer^ has joined #ruby
<shevy> #gamebox uses gosu as well
<Cache_Money> MrZYX: thanks
wesside has quit [Quit: Computer has gone to sleep.]
<SAUCYSALAMANDER> Cache_Money, 'gem install gingerice'?
<SAUCYSALAMANDER> oh lol. answered above
lewis has joined #ruby
<SAUCYSALAMANDER> shevy, what gems did you write?
ferdev has quit [Quit: ferdev]
horofox has quit [Quit: horofox]
<shevy> SAUCYSALAMANDER dunno, a bunch of crappy ones. I can't recommend them to anyone else yet really, I had two different people complain about a lack of documentation :P
<SAUCYSALAMANDER> link me
<SAUCYSALAMANDER> I might be able
<SAUCYSALAMANDER> to contribute
ferdev has joined #ruby
<shevy> SAUCYSALAMANDER https:/rubygems.org/profiles/58718
Faris has joined #ruby
yashshah has joined #ruby
<shevy> I'll add my most important gem as soon as I have finished the current rewrite
lewis has quit [Ping timeout: 276 seconds]
<SAUCYSALAMANDER> shevy, impressive, too bad not on github
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<shevy> SAUCYSALAMANDER i tried to :( I found it hard to sync my workflow with git + gems + github at the same time
<shevy> one day I will!
<MrZYX> github is just another git push origin master after the gem push ?
paolooo has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<MrZYX> now bundlers gem task even automatically tag, git push and gem push it for you :P
backjlack has joined #ruby
bluOxigen has joined #ruby
<shevy> ack, bundler
marcdel_ has joined #ruby
<shevy> bundler is way over my head
freeayu__ has quit [Ping timeout: 264 seconds]
marcdel has quit [Ping timeout: 258 seconds]
<jokke> hey, my class initializer accepts a block, which should be stored in a variable. I tried to do @task = &Proc.new but that gives me unexpected &
<MrZYX> it's not that complicated really
<shevy> I have not yet even mastered .gemspec format :D
<MrZYX> bundler is way simpler than that
<jokke> what am i doing wrong?
<shevy> jokke isn't it so that you can only use & in method definitions?
<jokke> isn't initialize a method?
<MrZYX> shevy: you can use the rake tasks just fine without using bundler for dependency management btw
<shevy> or rather, where have found the &
<shevy> MrZYX ack, rake
<shevy> I am going to first master 'gem' :D
<shevy> jokke yes, initialize() is a method
<MrZYX> add require "bundler/gem_tasks" to your Rakefile and run rake -T
<jokke> so where's the problem?
Faris has quit [Ping timeout: 248 seconds]
<shevy> jokke did you read what I asked :(
<jokke> definitions
<jokke> ah
<shevy> the syntax
RORgasm has joined #ruby
<shevy> I never saw &Proc.new before so I wonder where you got that?
<shevy> I see it used like:
<shevy> def test(&i); i.call; end; test { "atest" }
<MrZYX> Proc.new works too to capture a block
<jokke> there was a way to access the block given to the method from within it
freeayu__ has joined #ruby
<jokke> ah without the &
<jokke> thats it
<jokke> thanks
<MrZYX> so some_method(&Proc.new) can be used to pass a block to another method
Faris has joined #ruby
danslo has joined #ruby
<shevy> cool, never saw that before
<MrZYX> I too prefer def foo(&block) though
<jokke> but Proc.new without a block "catches" the block passed to the method, right?
fdfgdf has joined #ruby
<MrZYX> yup
<jokke> great
<fdfgdf> hi does anyone have any experience with C++?
<jokke> you guys heard of the subtle wm? It's so awesome it makes me wanna cry
<MrZYX> jokke: but as said the more obvious way to do it is def initialize(&block) @block = block; end
<jokke> MrZYX: ah i see
<jokke> yes that's much more readable
ritek has quit [Ping timeout: 245 seconds]
<MrZYX> block can be anything here, it's just the variable name
<jokke> does it work when put behind an optional variable?
hogeo_ has joined #ruby
<MrZYX> yup
<jokke> ok
<jokke> great
RORgasm has quit [Ping timeout: 245 seconds]
<shevy> jokke I heard of it, yeah. do you use it? I am on kde4 right now
tundrax has quit [Remote host closed the connection]
<shevy> I'd want a RubyOS so using subtle wm would bring me a little closer to that, than kde4
<jokke> shevy: yeah i've been using it for a few months now. I love ruby and being able to write extensions for a window manager in ruby is just awesome
fdfgdf has quit [Client Quit]
<shevy> cool
<jokke> note that the wm is written in c mostly
<shevy> one day I shall switch then :D
hogeo has quit [Ping timeout: 245 seconds]
<shevy> (I am still on ruby 1.8.7 ...)
<jokke> but it's configured in ruby.
<jokke> and the extensions are written in ruby
<Mon_Ouie> There are a couple of people here who have been using it for a long time now I think
<MrZYX> shevy: I should hack your rubygems account and add s.required_ruby_version = '>= 1.9.2' to all your gemspecs ;P
<jokke> :D
<shevy> MrZYX hahaha
<Mon_Ouie> 1.9.2 is old, time to switch to 2.0!
daidoji has quit [Ping timeout: 246 seconds]
<MrZYX> sure, but the current objective is to eliminate the 1.8 people iMO
<jokke> can you guys recommend a good c-bindings tutorial?
<MrZYX> so we should add that line to all our gemspecs :P
<shevy> MrZYX :(
<jokke> i've got just a little experience in C, but i need to use a C library in a ruby project.
<MrZYX> no reason to be said, just switch
<shevy> jokke dunno, I found it confusing... I think you really need to be rather good with C before you can make sense of things
<jokke> meh
<MrZYX> ew, sad
<Mon_Ouie> There's the README.EXT that contains information to get started
<shevy> jokke, I tried to collect things like from clalance.blogspot.co.at/2011/01/writing-ruby-extensions-in-c-part-1.html and other parts
<jokke> Mon_Ouie: thank you.
<MrZYX> jokke: also there's ffi
<jokke> god i hate c
<shevy> jokke this one was also interesting, but it is old http://www.onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html
<jokke> ffi?
<shevy> jokke yeah but there is no way around it :(
<shevy> and there is always worse than C
<shevy> like Java
<MrZYX> or PHP :P
<jokke> MrZYX: that's awesome!
<jokke> ffi i mean
<jokke> shevy: at least Java is OO
<shevy> hehe
<shevy> we have that too!
<shevy> we call it
<shevy> C++
<shevy> :D
<jokke> lol
<shevy> and for the military OOP we have C#
<jokke> but i agree with MrZYX PHP is really ugly
<shevy> only ruby has the poetry OOP
<MrZYX> recently a guy wanted to argue that C is OO as well since structs are objects really
<jokke> haha
<jokke> ahaha
<shevy> MrZYX yeah I think it depends on how you define "objects"
<shevy> I go with Alan Kay here
<jokke> theres a big difference between objects and data structures
<Mon_Ouie> People usually don't say that the language isn't OO, but that you can program in an object oriented style in it
rmnuvg has joined #ruby
<Mon_Ouie> Similarly a lot of Java code doesn't qualify as OO according to certain definitions
<shevy> what I always found confusing was that most definitions of OOP include private vs. public (vs. protected)
Faris has quit [Ping timeout: 268 seconds]
<jokke> objects can do things and shouldn't expose their internals, which is exactly the opposite of what a data structure is. It _does_ expose its internals and doesn't do anything
Faris has joined #ruby
<shevy> does smalltalk have private vs. public too?
<Mon_Ouie> It has a naming convention for internal methods I believe
<Mon_Ouie> And instance variables are private as in Ruby
<jokke> as they should
danslo has quit [Quit: danslo]
<Mon_Ouie> One thing is that class Point { int getX(); int getY(); void setX(int x); void setY(int y); … } is no better than struct Point { int x, y; }
<jokke> the thing is, in ruby you cannot distinguish a getter or setter from a method. That is what makes the object really an object. You don't need to know of it's internal stucture. It's just a black box that exposes methods to manipulate it from the outside.
<jokke> Mon_Ouie: they are both data structures technically speaking
slmorton has quit [Remote host closed the connection]
<Mon_Ouie> What definition of data structure you use? I think of something that would include linked lists, arrays, hash tables, etc; but that's orthogonal to object orientation though.
jovy88 has quit [Read error: Connection reset by peer]
<jokke> Mon_Ouie: a data stucture is like a container holding data. You can access every bit of it from the outside and it does not have any method that would manipulate it's content except for setters.
jovy88 has joined #ruby
skattyadz has quit [Quit: skattyadz]
ritek has joined #ruby
<MrZYX> array.map!(:to_s) so array (in ruby) isn't a data structure?
<jokke> no it's an object in ruby
emergion has joined #ruby
<shevy> hmmm
<MrZYX> Struct.new(:foo).class, so Struct is neither?
<shevy> would it be possible for ruby to do away with symbols from using it in a .rb file point-of-view? I feel symbols confuse newcomers often, for little real gain
tundrax has joined #ruby
<Mon_Ouie> Well that's just another definition than http://en.wikipedia.org/wiki/Data_structure
<shevy> jokke even world wars can happen due to reasons of misunderstanding based on different definitions and point of views :D
<shevy> I want a language like ruby, but simpler, whose OOP model is more akin to real biological cells
marr has joined #ruby
marr has quit [Excess Flood]
francisfish has quit [Remote host closed the connection]
szymonatportland has joined #ruby
<jokke> Hm? How does that differ from "my" definition?
<Mon_Ouie> Operations like adding an element to a hash table or retrieving it are an important part of the definition of the hash table
sayan has quit [Ping timeout: 256 seconds]
aapzak has quit [Read error: Connection reset by peer]
<jokke> yes. And they don't differ much from getters and setters
tundrax has quit [Ping timeout: 255 seconds]
amarraja_ has joined #ruby
<Mon_Ouie> I believe what makes a system object oriented is the fact that the objects themselves decide how they behave in it, instead of having the system being entirely manipulated by it
<Mon_Ouie> So one can replace the objects in the system to change the way it behaves
<shevy> hmm
<shevy> like ants
LennyLinux has joined #ruby
aapzak has joined #ruby
mneorr has joined #ruby
Cache_Money has quit [Ping timeout: 246 seconds]
davetherat has quit [Remote host closed the connection]
dawkirst has joined #ruby
davetherat has joined #ruby
idkazuma has joined #ruby
dawkirst has quit [Remote host closed the connection]
husimon___ has joined #ruby
huismon has quit [Read error: Connection reset by peer]
nari has joined #ruby
huismon has joined #ruby
vlad_starkov has joined #ruby
husimon___ has quit [Read error: Operation timed out]
skattyadz has joined #ruby
LennyLinux has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
szymonatportland has quit [Quit: leaving]
Faris has quit [Quit: Leaving.]
Faris has joined #ruby
F1skr has joined #ruby
sayan has joined #ruby
akashj87 has joined #ruby
amarraja_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mneorr has quit [Remote host closed the connection]
noxoc has joined #ruby
SAUCYSALAMANDER is now known as fir_ed
sepp2k has joined #ruby
h8R has quit [Ping timeout: 258 seconds]
<jokke> Mon_Ouie: i mean something like this, when i talk about the difference between objects and data structures: https://gist.github.com/supasnashbuhl/5476590
<jokke> the file point.rb obviously describes a datastructure
<jokke> the better_point.rb is an object. There is no way for you to know from the outside whether the class uses cartesian or polar coordinates. Which i mixed up i see... :D
kirun has joined #ruby
<jokke> it doesn't expose it's internals to the outside world.
<Mon_Ouie> It's just an immutable version of Point with other methods attached to it
<jokke> ideally you would make the constructor private and allow creating points only with class methods cartesian and polar
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
workmad3 has joined #ruby
<jokke> Mon_Ouie: but it is no longer just a data structure because it hides its internals properly
<jokke> okay ruby does this by default so it's harder to demonstrate here but in java for example you can have public instance variables. So you would have something like point.x as opposed to point.getX()
<jokke> the first would be used for raw data structures and nowhere else (ideally)
swex has joined #ruby
swex_ has quit [Ping timeout: 276 seconds]
chandankumar has joined #ruby
Astral_ has joined #ruby
unflores has joined #ruby
SAUCYSALAMANDER has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
fir_ed has quit [Ping timeout: 258 seconds]
nari has quit [Ping timeout: 260 seconds]
nickchow has joined #ruby
<Mon_Ouie> How does it not expose more of its internals?
nickchow has quit [Client Quit]
<Mon_Ouie> Just add attr_writer :x, :y and it won't make a difference
bubblehe_ has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
<jokke> yes it does. I could change the whole implementation to use polar coordinates internally and it wouldn't make a difference
RagingDave has joined #ruby
<jokke> it would continue to work as you expect it to
skattyadz has quit [Quit: skattyadz]
codecop has joined #ruby
ferdev has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
<jokke> it's not as critical in ruby, since you cannot directly access instance variables, but think of this written in java where you would use point.x to get the x coordinate. Now consider you need to change the implementation so that it will use polar coordinations internally. First you would need to create getters for x and y (which technically wouldn't be just getters. They would have to calculate the values from
<jokke> the radius and theta) Then you would have to change every occurence of point.x or point.y to point.getX() and point.getY(). It's a pain to expand or rewrite data structures.
Astralum has joined #ruby
mneorr has joined #ruby
celinedior has joined #ruby
noxoc has quit [Quit: noxoc]
xardas has joined #ruby
<Mon_Ouie> You can change the whole implementation in both classes
<jokke> in ruby you can
statarb3 has quit [Ping timeout: 252 seconds]
<jokke> thats one of the reasons i like ruby very much
Astral_ has quit [Ping timeout: 276 seconds]
<Mon_Ouie> That's my point, being a data structure and being object oriented are entirely orthogonal
<jokke> the convention to just use the variable name in the getter and with the = for setters makes things beautifully simple.
idkazuma has quit [Remote host closed the connection]
<jokke> and the fact that you cannot expose raw instance variables to the outside world.
Lockzi has joined #ruby
gyre007 has joined #ruby
aymeric_ has joined #ruby
ferdev has joined #ruby
rking has quit [Ping timeout: 268 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
strax has quit [Ping timeout: 264 seconds]
strax has joined #ruby
skattyadz_ has joined #ruby
statarb3 is now known as Proshot
skattyadz has quit [Ping timeout: 264 seconds]
skattyadz_ is now known as skattyadz
workmad3 has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
vlad_starkov has joined #ruby
akashj87_ has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
akash__ has joined #ruby
skattyadz has quit [Quit: skattyadz]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
akashj87 has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
ferdev has joined #ruby
indyrl has joined #ruby
akashj87_ has quit [Ping timeout: 248 seconds]
b0oh has joined #ruby
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
nari has joined #ruby
codecop has quit [Quit: Išeinu]
bw_ has quit [Ping timeout: 272 seconds]
bw_ has joined #ruby
netto has joined #ruby
skattyadz has joined #ruby
mercwithamouth has joined #ruby
kofno has joined #ruby
RORgasm has joined #ruby
jbpros has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
Faris has quit [Ping timeout: 256 seconds]
RORgasm has quit [Ping timeout: 245 seconds]
Faris has joined #ruby
indyrl has quit [Quit: Leaving.]
netto has quit [Quit: netto]
amarraja_ has joined #ruby
Faris1 has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
ramblex has quit [Remote host closed the connection]
akashj87 has joined #ruby
Faris has quit [Ping timeout: 268 seconds]
chandankumar has quit [Quit: Leaving]
peta_ has joined #ruby
rdxc has joined #ruby
akash__ has quit [Ping timeout: 248 seconds]
Faris1 has quit [Ping timeout: 255 seconds]
k610 has quit [Ping timeout: 252 seconds]
ramblex has joined #ruby
akashj87_ has joined #ruby
tomzx_mac has joined #ruby
neurone-1337 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rolton has joined #ruby
eka has joined #ruby
akashj87 has quit [Ping timeout: 248 seconds]
tomzx_mac has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
foofoobar has joined #ruby
bibi23 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Glacer232 has joined #ruby
Glacer232 has quit [Max SendQ exceeded]
DonRichie has joined #ruby
nveselinov has quit [Read error: Connection reset by peer]
<bibi23> hi, I'm using a tool requiring some configuration files written in Ruby, in a sample config file, I can see the first line is "# -*- mode: ruby -*-", and there is a second line "# vi: set ft=ruby :", those look like comments? What are they for? thx
kofno has quit [Remote host closed the connection]
jesly has joined #ruby
nveselinov has joined #ruby
Glacer232 has joined #ruby
eka has quit [Client Quit]
adamjleonard has quit [Quit: Leaving...]
Xeago has joined #ruby
<ramblex> bibi23, they're for the editor vi
AlSquirrel has quit [Ping timeout: 240 seconds]
mixel has joined #ruby
<bibi23> ramblex: ok thx
bibi23 has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
sleetdrop has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Quit: jbpros]
codecop has joined #ruby
neurone-1337 has quit [Ping timeout: 268 seconds]
kofno has joined #ruby
netto has joined #ruby
spider-mario has quit [Remote host closed the connection]
adamjleonard has joined #ruby
Faris has joined #ruby
<MrZYX> ramblex: isn't # -*- emacs?
<Mon_Ouie> The first one is for Emacs, the second one for vi(m)
AlSquire has joined #ruby
<matti> Mon_Ouie: ;]
<Mon_Ouie> 'alut matti ;)
<matti> LTNS
LennyLinux has joined #ruby
kil0byte has joined #ruby
eka has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
kobain has joined #ruby
F1skr has joined #ruby
mengu has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
pskosinski has joined #ruby
<icy`> but why would someone want to change the file type to emacs or vim
<icy`> sorry, i meant why would someone want comments that, for example, set the file type to ruby
<Mon_Ouie> So the editor can enable proper syntax highlighting, etc.
<MrZYX> in your Rakefile for example
<icy`> k
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
amarraja_ has quit [Quit: Textual IRC Client: www.textualapp.com]
atir_ has joined #ruby
<atir_> hi
Faris1 has joined #ruby
<atir_> I'm getting the error "[ERROR] no such file to load -- bundler/setup". I have installed the bundler with gem install bundler but still get the same error
<atir_> any ideas ?
<Spooner> My editors (Rubymine & Sublime Text) are more than happy with Rakefiles as is.
<Spooner> atir_, Are you using Ruby 1.8.7?
Faris has quit [Ping timeout: 252 seconds]
<atir_> Spooner: I'm running the script with "ruby1.9.1 script.rb"
pcboy__ has joined #ruby
marcdel_ has quit [Quit: marcdel_]
<Spooner> Ah, you installed it with apt-get (or similar) rather than a sensible way? ;)
sayan has joined #ruby
<Spooner> You have other versions of Ruby installed?
<MrZYX> atir_: do you have a gem1.9 or something?
<atir_> Spooner: yes the 1.8 but with that version the script does not work
<atir_> that's way I install the 1.9
<Spooner> I'm suspecting you are installing gem to 1.8 and then running the script with 1.9
<atir_> not sure (ruby amateur)
<MrZYX> yeah, usually there's a gem19 or something like that
zmike has joined #ruby
<atir_> so I install bundler with: gem1.91 install bundler ?
workmad3 has joined #ruby
<Mon_Ouie> Or installing it in 1.8 and running it in 1.8 and not requiring rubygems before
<Spooner> I'd strongly recommend using somethign to manage your versions rather than system ruby (rvm/rbenv/etc). Really makes things simpler.
pcboy_ has quit [Ping timeout: 256 seconds]
xardas has quit [Read error: Connection reset by peer]
<icy`> by the way, is there a way to cache off the list/description of gem searches
<atir_> if I uninstall the 1.8 would be ok ?
<icy`> gem search -r something (to make a local search and not go online every time)
Faris1 has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 258 seconds]
<icy`> like eix for gentoo
<atir_> thank you so much Spooner MrZYX Mon_Ouie ;)
<atir_> really appreciate
eka has quit [Quit: Computer has gone to sleep.]
<MrZYX> icy`: gem list?
kbouwser has joined #ruby
kbouwser has quit [Client Quit]
kbouwser has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
__alpaca has quit [Remote host closed the connection]
<icy`> MrZYX, for example if i do "gem search -dr nokogiri" and i want instant results from my cache
<icy`> something that already downloaded all the gems and descriptions
Xeago has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
<MrZYX> -dl then?
<icy`> gem list is close i guess, but only returns nokogiri*
rsahae has joined #ruby
rsahae has quit [Client Quit]
Faris has joined #ruby
mixel has quit [Quit: mixel]
Xeago has quit [Read error: Connection reset by peer]
<icy`> Deprecated Options:
<icy`> -u, --[no-]update-sources Update local source cache
<icy`> hm o.O
<icy`> looks like it used to be a feature
mityaz has joined #ruby
mixel has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
akashj87_ has quit [Quit: Leaving]
Morkel has joined #ruby
atir_ has quit [Quit: Lost terminal]
baordog has quit [Ping timeout: 245 seconds]
niklasb has joined #ruby
emmanuelux has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
netto has quit [Quit: netto]
mneorr has quit [Remote host closed the connection]
netto has joined #ruby
netto has quit [Client Quit]
slainer68 has joined #ruby
<icy`> hm.. i would like to search rubygems.org without going to rubygems.org
* icy` ponders
sleetdrop has joined #ruby
Xeago has joined #ruby
mneorr has joined #ruby
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
Nenor has joined #ruby
<mixel> gem search --remote noko
h8R has joined #ruby
IrishGringo has joined #ruby
kofno has quit [Remote host closed the connection]
wallerdev has joined #ruby
jonathanwallace has joined #ruby
<icy`> oh, didnt realize i could search without a search term
haxrbyte has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
freeayu3 has joined #ruby
aymeric_ has quit [Remote host closed the connection]
webwarlock has joined #ruby
freeayu__ has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 272 seconds]
Faris1 has joined #ruby
<icy`> mixel, the idea was to cache "gem search -dr"
Faris has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
johnnyfuchs has joined #ruby
kristofers has joined #ruby
subbyyy has joined #ruby
celinedior has quit [Quit: celinedior]
emergion has quit [Quit: Computer has gone to sleep.]
rking has joined #ruby
postmodern has quit [Quit: Leaving]
ZachBeta has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<icy`> for example, for i in {nokogiri,watir}; do gem search -dr $i >> gemsearch_cache; done
<icy`> but changing the range to {a..z}
adamjleonard has quit [Quit: Leaving...]
<icy`> it could take a long time
<icy`> i mean gem list, not search sorry
<MrZYX> why do you need that?
Morkel has quit [Quit: Morkel]
<icy`> the principle
<icy`> i dont need it
Faris1 has quit [Read error: Connection reset by peer]
Faris has joined #ruby
v0n has joined #ruby
<icy`> how big do you think the file would be? =P
emergion has joined #ruby
tommyvyo has quit [Quit:]
tundrax has joined #ruby
<MrZYX> ~330k lines
daidoji has joined #ruby
daidoji has quit [Client Quit]
yshh has quit [Remote host closed the connection]
jnoob22_ has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
jnoob22 has joined #ruby
yshh has joined #ruby
vlad_sta_ has joined #ruby
unflores has quit [Quit: unflores]
<jokke> I have a file called rules.rb which creates several objects of type Rule. The rule class definition is in another file. In this other file i then require the file rules.rb. This failes because ruby doesn't recognize the constant Rules..
vlad_sta_ has quit [Remote host closed the connection]
<jokke> can i somehow pass something to require or how should i do this?
miskander has joined #ruby
Yakko has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
<jokke> i can't add the content of rules.rb to the other file
GeissT has quit [Quit: MillBroChat AdIRC User]
vlad_starkov has quit [Ping timeout: 245 seconds]
<MrZYX> preferably require the definition at the top of rules.rb and run rules.rb
<jokke> MrZYX: i cannot do that
<MrZYX> but requiring rules.rb at the end of the definition should work too
<MrZYX> why not?
<jokke> you can see rules.rb as a kind of config file
Faris has quit [Ping timeout: 264 seconds]
<MrZYX> I'd consider a third file load_config.rb or whatever that requires the definition and then the config file then
<MrZYX> makes the intent clearer IMO
__alpaca has joined #ruby
Faris has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
<jokke> unfortunately i can't do that either.. :/
<MrZYX> so, putting the require 'rules' after the class definition should work
jovy88 has joined #ruby
<jokke> i'm expanding a sublet (extension for a window manager). And sublets can only have 2 files one containing the code and another containing specifications
<jokke> MrZYX: yes i thought so too, but it doesn't
<MrZYX> hm
<MrZYX> okay, ugly but try load
<jokke> load?
<MrZYX> and hope it's only loaded one time
<MrZYX> Kernel#load, yeah
<jokke> oh god
<jokke> on the other hand the requiring itself isn't the problem. The file gets loaded but somehow its not in the same namespace or what not
RORgasm has joined #ruby
mixel has quit [Quit: mixel]
<MrZYX> yeah, doing a quick test requiring after the class definition really should work
girija has joined #ruby
<jokke> ah i think require also evaluates the file. And thats in the default namespace i guess.
<MrZYX> yup
<jokke> or scope
mneorr_ has joined #ruby
<MrZYX> it's inside the main object
<MrZYX> >> self
<eval-in> MrZYX => main (http://eval.in/17849)
mixel has joined #ruby
<MrZYX> require skips the file if it's already loaded, are you sure it's not required before the definition file by the WM?
<jokke> i would need to load the file and evaluate it in the right scope
<jokke> MrZYX: yes i'm sure
<banisterfiend> >> def self.to_s "MYZYX";end; self
<eval-in> banisterfiend => /tmp/execpad-73b3c50c217a/source-73b3c50c217a:2: syntax error, unexpected tSTRING_BEG, expecting ';' or '\n' ... (http://eval.in/17850)
mneorr has quit [Ping timeout: 268 seconds]
<banisterfiend> >> def self.to_s; "MYZYX";end; self
<eval-in> banisterfiend => main (http://eval.in/17851)
<banisterfiend> >> def self.inspect; "MYZYX";end; self
<eval-in> banisterfiend => MYZYX (http://eval.in/17852)
<jokke> itwtf
<MrZYX> banisterfiend is bored :P
<MrZYX> (and can't spell)
<banisterfiend> haha
rolton has quit [Quit: Konversation terminated!]
<jokke> can i wrap the Rule.new calls into something so that i could have controll over when they're evaluated?
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
RORgasm has quit [Ping timeout: 255 seconds]
<jokke> it needs to look user friendly
demet8 has joined #ruby
demet8 has left #ruby [#ruby]
<jokke> i don't consider rules = lambda do; ... Rule.new calls ... end very user friendly
<banisterfiend> jokke: pass a block
<jokke> pass a block to require?
rickruby has joined #ruby
<jokke> is that possible?
<banisterfiend> no
<jokke> then what do you mean?
<MrZYX> def add_rule(*args, &block); rules << -> { Rule.new(*args, &block) }; end or whatever, but it won't solve your problem, it doesn't make the lack of the constant go away
<banisterfiend> i got no idea what u're talking about tbh
<jokke> :)
<jokke> MrZYX: that won't be very intuitive either
<jokke> in rails you see this all the time though: configure do; blabla; end
browndawg has quit [Quit: Leaving.]
<jokke> where does it get the configure from?
<MrZYX> def add_rule(*args, &block) $rules ||= []; $rules << [args, block]; end; then user says add_rule "foo", "bar" { "baz" } then you again say $rules.each do |args, block|; Rule.new *args, &block; end
webwarlock has quit [Read error: Connection reset by peer]
<jokke> meh
ZachBeta has quit [Quit: Computer has gone to sleep.]
<banisterfiend> MrZYX: let's ban this guy, nothing you do is good enough and i have a feeling he's a mean spirited little sprite
<MrZYX> ;D
<MrZYX> he has to cope with a weird WM
<banisterfiend> with a name like "jokke" he sounds like an evil elf
s2013 has joined #ruby
<MrZYX> jokke: I've never seen configure called on the main scope, always Something.configure
<icy`> banisterfiend sounds almost serious o.O
<banisterfiend> icy`: it's more fun when they think you mean it
<banisterfiend> ;)
girija has quit [Ping timeout: 245 seconds]
ZachBeta has joined #ruby
<icy`> MrZYX, out of curiosity, i cached "a" -- took 3min, 44sec, 22543 lines, takes up 608K space
<MrZYX> how many gems are that?
<icy`> sec, didnt check
<icy`> 3458
<MrZYX> so just > 51k to go
<icy`> from gem list -r a | wc -l
arubin has joined #ruby
Faris1 has joined #ruby
Faris has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
freakazoid0223 has joined #ruby
vlad_starkov has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
zmike has quit [Quit: Выходжу]
vlad_sta_ has joined #ruby
kf8a has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
hogeo_ has quit [Ping timeout: 246 seconds]
Tobarja has left #ruby ["PING 1367160517"]
kf8a has quit [Client Quit]
vlad_sta_ has quit [Remote host closed the connection]
CyberMaN has joined #ruby
horofox_ has joined #ruby
amarraja_ has joined #ruby
v0n has quit [Read error: Operation timed out]
chrishunt has joined #ruby
bean__ has joined #ruby
slash_nick has joined #ruby
<slash_nick> Hey guys... I just want to mention this gem: pay_dirt, http://goo.gl/pr1Iv ... I love the pattern it provides, but feel like it needs some syntactic sugar before people will be comfortable with it..
<slash_nick> I'd appreciate input :)
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
codecop has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
CyberMaN has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
PJames has joined #ruby
casheew has joined #ruby
PJames is now known as CyberMaN
CyberMaN has quit [Changing host]
CyberMaN has joined #ruby
Jackneill_ has joined #ruby
codecop has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
Faris1 has left #ruby [#ruby]
ariedler has quit [Read error: Connection reset by peer]
<shevy> seems complicated
<shevy> but then again I am a one liner person
browndawg has joined #ruby
<shevy> slash_nick what is the main advantage of pay_dirt ?
<slash_nick> shevy: my goal is to get a few people to stop tieing business logic to their rails models
rickruby has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
bubbajones has quit [Ping timeout: 245 seconds]
Proshot has quit [Quit: Leaving]
aloshkarev has joined #ruby
bubbajones has joined #ruby
<slash_nick> shevy: I find that logic implemented using this pattern is super easy to test... just mock and inject dependencies
justsee has quit [Ping timeout: 264 seconds]
platzhirsch has quit [Quit: Leaving.]
<shevy> yeah can't say anything
platzhirsch has joined #ruby
<shevy> it seems way over my head
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
<slash_nick> :( i bet it's not... jadams from #isotope11 introduced it to me a few years ago, and I love it... finally put it in a gem so I can quit cp'ing it from project to project
Morkel has joined #ruby
<platzhirsch> what I need is basically a Struct. Any idea where I should globally define the Struct.new(:attr1, :attr2,...) etc. so I don't have to do it everytime I need one?
spastorino has joined #ruby
niko__ has joined #ruby
bubbajones has quit [Remote host closed the connection]
<Spooner> platzhirsch, MyStruct = Struct.new(...)
<platzhirsch> Spooner: oh it just needs to be run once somewhere and then it is available, isn't it?
<MrZYX> a common pattern is also to do class MyStruct < Struct.new(..); ....; end
spastorino has left #ruby [#ruby]
ariedler has joined #ruby
mixel has quit [Quit: mixel]
<platzhirsch> MrZYX: would work for me, as I have started with a separate class anyway
<Spooner> I think you are supposed to do MyStruct = Struct.new() do end instead (otherwise you have an extra ancestor level for no reason).
<Spooner> I got told off for doing that myself ;)
danslo has joined #ruby
wallerdev has quit [Quit: wallerdev]
<platzhirsch> Spooner: extra ancestor level?
h8R has quit [Ping timeout: 245 seconds]
<MrZYX> the advantage is that MyStruct.class.name isn't Class
niko__ is now known as h8R
guiambros has quit [Ping timeout: 256 seconds]
<platzhirsch> MrZYX: ok, but how is that an advantage?
<MrZYX> debugging
<banisterfiend> MrZYX: i hate that pattern
guiambros has joined #ruby
<MrZYX> easy to find out what type of struct you got now
<MrZYX> in case you accidentally pass the wrong one
gyre008 has joined #ruby
Jackneill_ has quit [Quit: Leaving]
bubbajones has joined #ruby
Nenor_ has joined #ruby
Jackneill has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
Nenor has quit [Ping timeout: 256 seconds]
eka has joined #ruby
eka has quit [Client Quit]
mneorr_ has quit [Remote host closed the connection]
progbyperm has joined #ruby
lewis has joined #ruby
Zolo has joined #ruby
chandankumar has joined #ruby
jabular has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
Cultofmetatron has joined #ruby
JimmyNeutron has joined #ruby
guiambros has quit [Ping timeout: 256 seconds]
Cultofmetatron has quit [Remote host closed the connection]
kuzushi__ has quit [Ping timeout: 260 seconds]
mityaz has quit [Read error: Connection reset by peer]
freeayu3 has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
platzhirsch has joined #ruby
IceyEC has joined #ruby
aloshkarev has quit [Quit: aloshkarev]
rickruby has joined #ruby
workmad3 has joined #ruby
IceyEC has quit [Client Quit]
Faris9 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
uncleBob has joined #ruby
uncleBob is now known as _KGBot_
<_KGBot_> Greetings from http://peggy.torservers.net..
<marwinism> goat.cx
progbyperm has quit [Read error: Connection reset by peer]
<_KGBot_> We're veggies.. We #FCUK goat..
wallerdev has joined #ruby
<marwinism> wow. is that supposed to be like a hashtag?
<_KGBot_> http://news.bbc.co.uk/2/hi/7846822.stm True goat story..
<marwinism> not a binary goat. don't care
<_KGBot_> no probs..
mityaz has joined #ruby
<_KGBot_> Ruby pls..
<_KGBot_> running 1.8.7, need 1.9.3 How pls..
<marwinism> i'm working on my own distro. goatoo. should be something for you _KGBot_
<MrZYX> _KGBot_: by installing it
<_KGBot_> not sure about yr distro bro.. Try #FCUK goat..
<_KGBot_> !bye
_KGBot_ has quit [Remote host closed the connection]
mityaz has quit [Client Quit]
<marwinism> lol, he actually left.
<MrZYX> wow, no endurance today
<marwinism> damn dropouts from troll academy. They know nothing about the internet
<marwinism> wonder if I can track down some coffee in this building..
Faris9 has quit [Quit: Faris9]
progbyperm has joined #ruby
neurone-1337 has joined #ruby
rton has left #ruby [#ruby]
rton has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
chipotle_ has quit [Ping timeout: 245 seconds]
generali_ has joined #ruby
branflake has joined #ruby
gadgetoid has quit [Quit: ZNC - http://znc.sourceforge.net]
branflake has quit [Client Quit]
blandflakes has joined #ruby
eldariof has joined #ruby
osvico has quit [Read error: Connection reset by peer]
lewis has quit [Remote host closed the connection]
sambao21 has joined #ruby
neurone-1337 has quit [Ping timeout: 245 seconds]
<A124> How can one define method for instance?
<AndChat|> Easily
<A124> items = Hash.new; def items.search( search_term); <code> ;end
<A124> items.search( '835nm')
Zolo has quit [Remote host closed the connection]
<A124> NameError: undefined local variable or method `items' for #<Hash:0x804e6364>
<A124> Umm.. I may have overrided the instance one.
lewis has joined #ruby
cheese1756_ has quit [Quit: ZNC - http://znc.in]
<MrZYX> A124: inside the method use self instead of items
<A124> Yeah I realized that
<A124> But the problem was a method that was defined for Hash
<A124> Which took precedence. Is there a way so that instance defined takes precedence?
<MrZYX> I'd do a delegator
slash_nick has quit [Quit: Lost terminal]
ariedler has joined #ruby
angusiguess has joined #ruby
<A124> a) My bad. Headeache does the part. b) Delegator. Hm.. good thought. Thank you.
<LennyLinux> Methods look up start from the singleton class so the method you defined is the first in the chain...
cheese1756 has joined #ruby
jonahR has joined #ruby
jonahR has left #ruby [#ruby]
JimmyNeutron has quit [Quit: Leaving]
gadgetoid has joined #ruby
<LennyLinux> lookup starts*
<A124> LennyLinux: Yeah. Sure. Thanks.
ZachBeta has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
n1n3v3h_ has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
mootpointer has joined #ruby
juco has quit [Quit: ZNC - http://znc.in]
progbyperm has quit [Read error: Connection reset by peer]
mootpointer has quit [Client Quit]
bhaarat has quit [Quit: bhaarat]
Mon_Ouie has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
sayan has quit [Ping timeout: 264 seconds]
rburton- has joined #ruby
wedgex has joined #ruby
workmad3 has joined #ruby
b0oh has quit [Quit: Leaving.]
v0n has joined #ruby
teclator has joined #ruby
Cultofmetatron has joined #ruby
sepp2k has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 256 seconds]
b0oh has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
wedgex has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
octarine has quit [Ping timeout: 245 seconds]
mroth has quit [Ping timeout: 256 seconds]
im0b has quit [Ping timeout: 246 seconds]
[Neurotic] has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
Spaceghost|cloud has quit [Ping timeout: 246 seconds]
phasma has quit [Ping timeout: 264 seconds]
rgn has quit [Ping timeout: 268 seconds]
RORgasm has joined #ruby
<jokke> :q
<jokke> ups
gyre008 has quit [Ping timeout: 264 seconds]
RORgasm has quit [Read error: Operation timed out]
ZachBeta has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ZachBeta has quit [Client Quit]
mneorr has joined #ruby
forlin has quit [Remote host closed the connection]
nopolitica has joined #ruby
kca has joined #ruby
kofno has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<jokke> okay back to my require problem: following gist https://gist.github.com/supasnashbuhl/5477430 contains the relevant code. On line 144 in battery.rb i require the file battery_rules.rb and its beneath the Rule class definition. Any ideas why it still goes wrong? (No method error: no method new for nil:NilClass)
eka has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
ZachBeta has joined #ruby
<MrZYX> try p require 'battery_rules', does it return true or false?
eka has quit [Client Quit]
<jokke> try where?
<MrZYX> 144
<jokke> ah ok
Banistergalaxy has joined #ruby
mneorr has quit [Remote host closed the connection]
nopolitica has quit [Quit: Lost terminal]
s2013 has quit [Ping timeout: 276 seconds]
dv__ has joined #ruby
<jokke> it seems it doesn't even get to that point, because it throws the error before returning anything
octarine has joined #ruby
rgn has joined #ruby
dv_ has quit [Ping timeout: 258 seconds]
<MrZYX> so the system is requiring it somewhere before you try manually
bluOxigen has quit [Ping timeout: 245 seconds]
<jokke> you think so?
<MrZYX> yup
<jokke> hm, hard to believe. I'll remove the whole require part and see what happens
<MrZYX> though I'm confused that you get a NoMethod for nil instead of a uninitialized constant
r0bgleeson has joined #ruby
<jokke> nope...
cheese1756 has quit [Excess Flood]
<jokke> if i remove it i get no errors
horofox_ has quit [Quit: horofox_]
casheew has quit [Read error: Connection reset by peer]
<jokke> MrZYX: yes me too. Very weird
<MrZYX> did you to change it to BatteryRule or so?
<jokke> *try to?
<jokke> no i didn't
<jokke> worth a try i guess
<MrZYX> maybe you run into name conflict
casheew has joined #ruby
<jokke> yup
<MrZYX> Rule is a pretty generic name
<jokke> true
cheese1756 has joined #ruby
infecto has joined #ruby
robscomputer has quit [Ping timeout: 240 seconds]
<infecto> What is the cleanest way to unnest nested arrays?
<lewis> splat operator
<MrZYX> or #flatten
<MrZYX> depending on what you mean by unnesting
<jokke> MrZYX: nope, no effect. I think it throwing a NoMethod error might have to do with the DSL the wm is using.
<infecto> ahah! somehow missed flatten! Thank you lewis and MrZYX
sambao21 has joined #ruby
tommyvyo has joined #ruby
tvw has joined #ruby
sayan has joined #ruby
robscomputer has joined #ruby
robscomputer_ has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
infecto has quit [Quit: Leaving.]
platzhirsch has quit [Ping timeout: 272 seconds]
subbyyy has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
lewis is now known as lewix
robscomputer has quit [Ping timeout: 256 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
blacktul_ has quit [Remote host closed the connection]
blacktulip has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
francisfish has joined #ruby
s2013 has joined #ruby
bashdy has joined #ruby
mahmoudimus has joined #ruby
mneorr has joined #ruby
coaster has left #ruby ["Textual IRC Client: www.textualapp.com"]
bean__ has joined #ruby
<lewix> injekt: anytime
bean__ has quit [Max SendQ exceeded]
miskander has quit [Quit: miskander]
pietr0 has quit [Ping timeout: 260 seconds]
bashdy has quit [Client Quit]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
bradhe has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
rickmasta has quit [Quit: Leaving...]
pietr0 has joined #ruby
BSaboia has joined #ruby
workmad3 has joined #ruby
girija has joined #ruby
_KGBot_ has joined #ruby
mercwithamouth has joined #ruby
<_KGBot_> MrZYX: u on board..
yshh has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 264 seconds]
yshh has joined #ruby
jduan1981 has joined #ruby
indyrl has joined #ruby
indyrl has left #ruby [#ruby]
francisfish has quit [Remote host closed the connection]
codenapper has quit [Quit: codenapper]
<withnale> Hello. How do I convert a string to a class? I thought I used Object.const_get but it doesn't seem to work for module classes...
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
Jackneill has quit [Read error: Operation timed out]
mixel has joined #ruby
<withnale> It works for Object.const_get('String') but not Object.const_get('My::Own::Class')
francisfish has joined #ruby
<MrZYX> try Object.const_get("My").const_get("Own").const_get("Class")
workmad3 has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
<withnale> urgh. that's messy. I wanted to have the implementation method specified in a config file and easily selectable.
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
<MrZYX> "My::Own::Class".split('::').inject(Object) { |obj, const| obj.const_get(const) }
<banisterfiend> MrZYX: or in 2.0: My.const_get("Own::Class") :)
Neomex has quit [Client Quit]
<banisterfiend> err, Object.const_get("My::Own::Class")
Proshot has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
<MrZYX> he said it doesn't work, so he isn't on 2.0 yet
emptyflask has joined #ruby
mixel has quit [Quit: mixel]
joeybutler1 has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 258 seconds]
<withnale> Didn't realise it was a 2.0 vs 1.9.3 thing. We're close to migrating
francisfish has quit [Remote host closed the connection]
joeybutler1 has joined #ruby
amarraja_ has quit [Quit: Computer has gone to sleep.]
emptyflask has quit [Remote host closed the connection]
mixel has joined #ruby
<banisterfiend> MrZYX: ah i didnt see that
martxel has quit [Quit: living]
martxel has joined #ruby
BinaryMstr has joined #ruby
martxel is now known as Guest61407
<BinaryMstr> Can anyone help me out with understanding an error I'm getting? I am getting the following error from this code http://pastebin.com/tbCFGw1V :ERROR::-> return can't jump across threads
spider-mario has joined #ruby
Guest61407 is now known as martxel
<MrZYX> the return would return from the method, but it can't since it's in a new thread
martxel has quit [Changing host]
martxel has joined #ruby
__alpaca has quit [Remote host closed the connection]
<BinaryMstr> so pull out the return statement from the thread block?
<MrZYX> yup
<BinaryMstr> is there a better way to write the method then how I did it?
<BinaryMstr> or should I say a more ruby way to write that method
<MrZYX> I'm not sure what it does tbh
<LennyLinux> You could create a shared variable inside a critic region, but i don't know how to do it in Ruby
<LennyLinux> Check any ruby threads guide and it will be explained for sure
sambao21 has joined #ruby
__alpaca has joined #ruby
<BinaryMstr> Thank you
<MrZYX> BinaryMstr: do you actually need the return value?
jbw has joined #ruby
icecandy has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
tjbiddle has joined #ruby
workmad3 has joined #ruby
Z_Mass has joined #ruby
<BinaryMstr> No
<BinaryMstr> I can get it out later from the objects when I need it
<MrZYX> source.map { |_, tag| Thread.new(tag, &:get_tag) }.each(&:join) then
<BinaryMstr> each thread is doing an svn checkout of a project, after the checkout is done then it goes on to creating links to and from other projects
angusiguess has joined #ruby
general__ has joined #ruby
Michael__ has joined #ruby
brianpWins has joined #ruby
adamjleonard has joined #ruby
generali_ has quit [Ping timeout: 276 seconds]
girija has quit [Ping timeout: 255 seconds]
__alpaca has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
k610 has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
codenapper has joined #ruby
jesly has quit [Ping timeout: 256 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
codenapper has quit [Client Quit]
workmad3 has quit [Ping timeout: 245 seconds]
kca has left #ruby [#ruby]
teejmya has joined #ruby
tenmilestereo has joined #ruby
brunoro has joined #ruby
kristofers has quit [Ping timeout: 276 seconds]
t-mart has joined #ruby
huoxito has joined #ruby
Nisstyre has joined #ruby
teejmya has quit [Remote host closed the connection]
brunoro has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
mneorr has joined #ruby
Cache_Money has joined #ruby
mneorr has quit [Remote host closed the connection]
breakingthings has joined #ruby
bradhe has joined #ruby
LnL has quit [Quit: LnL]
[0x1a] has joined #ruby
_KGBot_ is now known as dfdf
francisfish has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
tundrax has quit [Remote host closed the connection]
LnL has joined #ruby
[Neurotic] has joined #ruby
im0b has joined #ruby
teddyp1cker has joined #ruby
mroth has joined #ruby
Spaceghost|cloud has joined #ruby
LnL has quit [Client Quit]
phasma has joined #ruby
LnL has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
RORgasm has joined #ruby
lewix has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ph^ has joined #ruby
jduan1981 has quit [Quit: jduan1981]
LennyLinux has quit [Remote host closed the connection]
jbpros has joined #ruby
RORgasm has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
CyberMaN has quit [Read error: Connection reset by peer]
PJames has joined #ruby
francisfish has quit [Remote host closed the connection]
generali_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mikemac is now known as crazymykl
teddyp1cker has quit [Read error: Operation timed out]
general__ has quit [Ping timeout: 272 seconds]
zeade has joined #ruby
teddyp1cker has joined #ruby
zeade has quit [Client Quit]
tomzx_mac has quit [Ping timeout: 252 seconds]
DonRichie has joined #ruby
xlab has joined #ruby
marcdel has joined #ruby
adamjleonard has quit [Quit: Leaving...]
tenmilestereo has quit [Quit: Leaving]
Glacer232 has quit [Quit: Computer has gone to sleep.]
tarOFF has joined #ruby
<tarOFF> re
<tarOFF> hi
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<tarOFF> I'm getting the error "Could not find gem 'typhoeus (= 0.6.2) ruby'"
<tarOFF> and If I do "gem1.9.1 list" I get typhoeus (0.6.3)
<tarOFF> any idea to solve this ?
neku has joined #ruby
sayan has joined #ruby
rakl has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
nveselinov has left #ruby ["Leaving"]
browndawg has left #ruby [#ruby]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<unstable> tarOFF: What operating system?
<csmrfx> tarOFF: which ruby
<csmrfx> (literally, in shell)
josh__ has joined #ruby
josh__ is now known as brain_shim_
<unstable> tarOFF: which ruby; which gem; ruby -v; gem -v; gem list --local|grep typhoeus; (pastie all of these)
angusiguess has joined #ruby
<tarOFF> hi
<tarOFF> ruby 1.9.1
<tarOFF> debian 6
wesside has joined #ruby
<tarOFF> ruby 1.9.2p0 (2010-08-18 revision 29036) [i486-linux]
<banisterfiend> tarOFF: ancient version of ruby
<banisterfiend> tarOFF: 2010 :)
__alpaca has joined #ruby
<tarOFF> I get this error:
<tarOFF> Could not find gem 'typhoeus (= 0.6.2) ruby' in the gems available on this machine.
jesly has joined #ruby
<tarOFF> Run `bundle install` to install missing gems.
vlad_starkov has joined #ruby
atmosx has joined #ruby
tylersmith has joined #ruby
<waxjar> so did you run bundle install?
b0oh has quit [Quit: Leaving.]
dfdf has quit [Remote host closed the connection]
<pskosinski> Using Ruby on Debian 6 is not nice, from my experience, it's best to use rvm
<tarOFF> I get no suck file to load --bundler/setup
<unstable> I also second rvm or rbenv.
<unstable> tarOFF: It seems like you have two versions of ruby installed.
mklappst_ has joined #ruby
<unstable> Perhaps there is a global package installed with dpkg, and perhaps another somewhere else?
__alpaca has quit [Ping timeout: 252 seconds]
<unstable> gem install --version '> 0.6.2' typhoeus
rakl has quit [Quit: sleeping]
<tarOFF> unstable: thank you let me try it
IceDragon has joined #ruby
<IceDragon> D
<IceDragon> ignore that...
vlad_starkov has quit [Ping timeout: 256 seconds]
<banisterfiend> IceDragon: we know what's on your mind now
<banisterfiend> jk :)
<waxjar> tarOFF, i think you're trying to install something that relies on Bundler, but you don't have bundler installed
<IceDragon> heil nu
miskander has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
ToApolytoXaos has quit [Quit: Leaving]
<tarOFF> waxjar: I think so, If I run: gem1.9.1 install bundler
<tarOFF> I get Successfully installed bundler-1.3.5
<tarOFF> It's not installed
rickmasta has joined #ruby
<waxjar> you just said you were on ruby 1.9.2, right?
<csmrfx> tarOFF: you want RVM
<atmosx> Anyone messed with open readinf frames using ruby? It's bioinforamtics using bioruby.
<waxjar> idk what gem1.9.1 is, but i assume it'd install gems for Ruby 1.9.1
<unstable> yea, your environment sounds messed up. Get rid of the global stuff and go with rvm.
<tarOFF> ok I'm gonna try it
__alpaca has joined #ruby
<tarOFF> thank you so much
<csmrfx> tarOFF: it is rather complicated to use gems with debian
<MrZYX> waxjar: the debian people just put the abi version everywhere, which is 1.9.1 for 1.9.2
v0n has quit [Ping timeout: 255 seconds]
<csmrfx> tarOFF: if you have a specific gem that you can find in apt-get, those always work fine
gyre007 has joined #ruby
<csmrfx> MrZYX: no, just when there are multiple different versions available
<waxjar> i see
symme7ry has joined #ruby
dangerousdave has joined #ruby
robottinosino has joined #ruby
__alpaca has quit [Ping timeout: 258 seconds]
ananthakumaran has quit [Quit: Leaving.]
general__ has joined #ruby
divout has quit [Quit: Leaving.]
gyre007 has quit [Ping timeout: 240 seconds]
mootpointer has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
love_color_text has joined #ruby
miskander has quit [Quit: miskander]
NihilistDandy has joined #ruby
foofoobar has joined #ruby
generali_ has quit [Ping timeout: 272 seconds]
Morkel_ has joined #ruby
strelok has joined #ruby
noxoc has joined #ruby
LennyLinux has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
marr has joined #ruby
chris__ has joined #ruby
<IceDragon> Hey, guys, FL11 has ruby!
chrishough has quit [Quit: chrishough]
mixel has quit [Quit: mixel]
codecop has quit [Remote host closed the connection]
robottinosino has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
bhaarat has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
sayan has quit [Ping timeout: 272 seconds]
davetherat has quit [Remote host closed the connection]
adambeynon has joined #ruby
davetherat has joined #ruby
codecop has joined #ruby
chandankumar has quit [Quit: Leaving]
tarOFF has quit [Quit: Lost terminal]
kristofers has joined #ruby
germanstudent has quit [Ping timeout: 248 seconds]
NimeshNeema has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
jbpros has quit [Quit: jbpros]
tylersmith has quit [Quit: tylersmith]
Mattix has joined #ruby
jesly has quit [Quit: Leaving.]
sepp2k has joined #ruby
Z_Mass has quit [Ping timeout: 252 seconds]
echevemaster has joined #ruby
iPhoneMRZ has joined #ruby
strelok has quit [Quit: Page closed]
iPhoneMRZ has quit [Client Quit]
johnnyfuchs has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby
r0bby_ is now known as robbyoconnor
generali_ has joined #ruby
osvico has joined #ruby
jdunck has joined #ruby
general__ has quit [Ping timeout: 272 seconds]
Neomex has joined #ruby
mmitchell has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jduan1981 has joined #ruby
horofox_ has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
angusiguess has joined #ruby
mercwithamouth has joined #ruby
<LennyLinux> >> n = 10; pr = proc {|x| x*n}; p pr[42]; n = 2; p pr[42]
mneorr has joined #ruby
<eval-in> LennyLinux => 420 ... (http://eval.in/17861)
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
<LennyLinux> Can i simulate statically bounding n without double wrapping?
IceyEC has joined #ruby
droppedonmyhead has quit [Ping timeout: 268 seconds]
<LennyLinux> I'd like the result to be always the x * 10
ZachBeta has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 256 seconds]
Neomex has quit [Quit: Neomex]
BSaboia has quit [Ping timeout: 272 seconds]
ZachBeta has joined #ruby
<banisterfiend> LennyLinux: what do u mean
__alpaca has joined #ruby
lewix has quit [Remote host closed the connection]
Lodos has joined #ruby
<Lodos> hello
brunoro has joined #ruby
IrishGringo has joined #ruby
<banisterfiend> LennyLinux: nm
ner0x has joined #ruby
noxoc has quit [Quit: noxoc]
<LennyLinux> banisterfiend: i know i was unclear, sorry. I'll try to explain.. What does nm mean?
symme7ry has quit [Ping timeout: 256 seconds]
<banisterfiend> LennyLinux: i understand
<Lodos> im newbie programmer
<LennyLinux> Hi Lodos
<Lodos> how to learn ruby ?
ZachBeta has quit [Client Quit]
<LennyLinux> banisterfiend: so, did you get it?
huoxito has quit [Quit: Leaving]
<unstable> Lodos: You could do codecademy, then do this guide: http://rubymonk.com/learning/books/1 then this guide: http://web.archive.org/web/20130117220112/http://pine.fm/LearnToProgram/ then this guide: https://github.com/alexch/learn_ruby
<unstable> Lodos: I've discoverd that there is no genetic or innate ability to basic programming. The people who are good have a lot of hours. Just keep programming and making more stuff, get your hours count high.
gstudent2 has joined #ruby
<unstable> This book is pretty good: http://beginningruby.org/ , and this guide isn't bad for rspec stuff: http://rspec.codeschool.com/levels/1
__alpaca has quit [Ping timeout: 272 seconds]
ZachBeta has joined #ruby
<LennyLinux> banisterfiend: i see, so that's the only way? I should define the var inside a bloc?
<banisterfiend> LennyLinux: well in practice this should *really* not be an issue
mmitchell has quit [Remote host closed the connection]
<banisterfiend> LennyLinux: or are you creating procs inside a loop or something?
<Xeago> banisterfiend: offtopic, how much do you pay per month for your internet connection, and what do you get?
<banisterfiend> Xeago: 20 a month, infinite quota, about 1 meg/second
<Lodos> i known php c++ c#
<banisterfiend> Xeago: u?
<unstable> Lodos: ok, so you should get through those guides much faster than someone who doesn't know any languages.
<Xeago> paying that here in sweden too, 200mbit sync, no quota
<Xeago> sorry, I lied, 24eur/month
<Xeago> come to sweden yo :)
<LennyLinux> banisterfiend: yes, you're right, it shouldn't be an issue. Mine was just speculation. THank you so much
gstudent2 has quit [Ping timeout: 248 seconds]
<banisterfiend> LennyLinux: the 'let' method is my girl.
<banisterfiend> i hope we get it in ruby
<LennyLinux> JS? :)
tabolario has quit [Quit: tabolario]
<banisterfiend> LennyLinux: more like coffeescript's 'do'
<Lodos> unstable : thanks
<LennyLinux> Uh. I like the prototype paradigm :P
Banistergalaxy has quit [Ping timeout: 258 seconds]
<banisterfiend> LennyLinux: i dont :) I prefer the coffeescript way of doing things
<banisterfiend> LennyLinux: also, if you look at any of the major MVC frameworks for JS, they all have their own make-shift concept of a 'class' anyway
workmad3 has quit [Read error: Operation timed out]
Banistergalaxy has joined #ruby
codezombie has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<banisterfiend> in my experience anyway
timonv has quit [Remote host closed the connection]
<LennyLinux> Yes, now that you're mentioning it i noticed . I'd like something like this n = 10; p = proc(n) {|x| x * n}; p[3]
mengu has quit [Quit: Leaving]
rickruby has joined #ruby
s2013 has quit []
<LennyLinux> (sorry for my english)
RORgasm has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
choobie has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 245 seconds]
adamjleonard has joined #ruby
JoeTheGuest has quit [Ping timeout: 245 seconds]
<LennyLinux> Xeago: 200mbit? I've so much envy right now
mrfoo has quit [Quit: Page closed]
<LennyLinux> That speed is my dream
chrishough has joined #ruby
dfdf has joined #ruby
martxel has quit [Ping timeout: 245 seconds]
dustmason has joined #ruby
Bracki_ has quit [Ping timeout: 245 seconds]
xerxas has quit [Ping timeout: 245 seconds]
PaulePanter has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
guilleiguaran_ has quit [Ping timeout: 264 seconds]
prime has quit [Read error: Connection reset by peer]
<LennyLinux> Partially applied closure, perfect!
prime has joined #ruby
martxel has joined #ruby
chiel has quit [Ping timeout: 264 seconds]
Bracki has joined #ruby
moeSeth has quit [Ping timeout: 255 seconds]
<LennyLinux> Thanks
spanx_ has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 272 seconds]
yeban has quit [Ping timeout: 245 seconds]
martxel is now known as Guest73589
chiel has joined #ruby
dfdf is now known as [dfdf]
rcsheets has quit [Ping timeout: 256 seconds]
PaulePanter has joined #ruby
dekz__ has quit [Ping timeout: 255 seconds]
davidboy has quit [Ping timeout: 246 seconds]
ayonix has quit [Ping timeout: 256 seconds]
bluehavana has quit [Ping timeout: 256 seconds]
swistak35 has quit [Ping timeout: 245 seconds]
ziyadb has quit [Ping timeout: 246 seconds]
rwz has quit [Ping timeout: 246 seconds]
randym has quit [Ping timeout: 260 seconds]
niftylettuce has quit [Ping timeout: 246 seconds]
rubycode has quit [Ping timeout: 246 seconds]
cam` has quit [Ping timeout: 246 seconds]
tessi has quit [Ping timeout: 246 seconds]
phite is now known as tessi
ayonix has joined #ruby
lectrick has quit [Ping timeout: 256 seconds]
cool has quit [Ping timeout: 256 seconds]
ohcibi has quit [Ping timeout: 246 seconds]
kalleth has quit [Ping timeout: 246 seconds]
dv__ has quit [Ping timeout: 264 seconds]
z has quit [Ping timeout: 245 seconds]
kalleth has joined #ruby
ohcibi has joined #ruby
sweet_kid has quit [Ping timeout: 246 seconds]
z has joined #ruby
Cultofmetatron has joined #ruby
general__ has joined #ruby
z is now known as Guest76061
sweet_kid has joined #ruby
swistak35 has joined #ruby
kaichanvong has quit [Ping timeout: 264 seconds]
eval-in_ has joined #ruby
phite has joined #ruby
eval-in has quit [Remote host closed the connection]
generali_ has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 255 seconds]
IceyEC has quit [Quit: IceyEC]
Opettaja has joined #ruby
Nahra has quit [Read error: Connection reset by peer]
thejefflarson_ has quit [Read error: Operation timed out]
Nahra has joined #ruby
thejefflarson_ has joined #ruby
Z_Mass has joined #ruby
Muz has quit [Ping timeout: 255 seconds]
Muz has joined #ruby
kaichanvong has joined #ruby
rickruby has quit [Remote host closed the connection]
neurone-1337 has joined #ruby
octarine has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
chris__ has quit [Remote host closed the connection]
Lodos has quit []
Z_Mass has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
bhaarat has quit [Quit: bhaarat]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bubblehe_ has quit [Read error: Connection reset by peer]
IceyEC has joined #ruby
bubblehead has joined #ruby
lkba has joined #ruby
ner0x has quit [Quit: Leaving]
neurone-1337 has quit [Ping timeout: 252 seconds]
BSaboia has joined #ruby
infecto has joined #ruby
Morkel has quit [Quit: Morkel]
IrishGringo has quit [Ping timeout: 245 seconds]
infecto1 has joined #ruby
rakl has joined #ruby
rakl has quit [Client Quit]
lewix has joined #ruby
rakl has joined #ruby
lewix has quit [Remote host closed the connection]
infecto has quit [Ping timeout: 252 seconds]
atno has quit [Ping timeout: 264 seconds]
gstudent2 has joined #ruby
atno has joined #ruby
AgentWillyWonka has joined #ruby
saskuash has joined #ruby
infecto1 has left #ruby [#ruby]
GeissT has joined #ruby
haxrbyte has joined #ruby
kristofers has quit []
gungor has joined #ruby
ziggles has joined #ruby
kofno has quit [Remote host closed the connection]
<Morrolan> I have been using custom classes as hash keys, and once I made sure that they provide #eql? and #hash, it worked fine. Up to now, anyway.
<Morrolan> Now I'm getting issues which look something like these, and I am clueless what is happening: https://gist.github.com/Lavode/9b0512e97ae17951298d
<ziggles> Hi guys I'm working on a console based pomodoro timer and i have a RSpec spec for my cli that looks like this: http://pastie.org/private/alzgtisrv1ssmdjnv4udg unfortunately i have to wait 25 minutes for this test because it's starting a REAL pomodoro timer...
<ziggles> Any pointers on what i should be doing to side step having to wait that long?
Cache_Money has quit [Ping timeout: 258 seconds]
Animawish has joined #ruby
shadoi has joined #ruby
<MrZYX> ziggles: look into the timecop gem
<joshu> hi is this @page ||= "1" the same as @page = @page || "1" ?
<MrZYX> joshu: yes
<joshu> thank you MrZYX
<Mon_Ouie> Beware tough, x ||= y and x = x || y aren't equivalent in the general case
<ziggles> MrZYX: will do. thanks!
mahmoudimus has joined #ruby
<banisterfiend> joshu: it's actually this: @page || @page = "1"
<banisterfiend> i think
<banisterfiend> Mon_Ouie: 'alut, prank or pun?
Qwak has quit []
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<Mon_Ouie> Am I supposed to choose which one you're going to perform?
__alpaca has joined #ruby
<MrZYX> Morrolan: quick shot would be trying to run rehash
<banisterfiend> Mon_Ouie: no..my bro's french gf thinks they mean the same thing (her english is to messed up to comprehend the difference) so he teases her by saying "prank or pun?". So in lieu of my own french gf i thought i'd say it to you
<banisterfiend> Mon_Ouie: is that ok?
<banisterfiend> too messed up*
allure has quit [Quit: Saindo]
<Morrolan> MrZYX: Oh, hash keys are cached, so when one of the key's attributes changes it might mess things up, eh.
<Mon_Ouie> I know the difference. We call them differently too. A pun is "un jeu de mot", a prank is "une farce" (or other words based on the context)
<MrZYX> Morrolan: yup
<Morrolan> MrZYX: That might explain it, thanks. :)
tomgrim has joined #ruby
bradhe has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 255 seconds]
eldariof has quit [Ping timeout: 264 seconds]
<joshu> so if I want to write a decrement statement of @page until it reaches 1…so @page = 3 …. @page - 1 until @page = 1
<joshu> not in a loop
<waxjar> @page.downto(1) do … end
brunoro has quit [Ping timeout: 255 seconds]
<atmosx> joast: there are at least 4-5 known ways
<atmosx> waxjar: gave you the most straighforward I guess
LnL has quit [Quit: LnL]
idkazuma has joined #ruby
[dfdf] is now known as dfdf
ziyadb has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<joshu> waxjar but that is a loop right until @page = 1 do something in the do end block?
IceyEC has quit [Quit: IceyEC]
<waxjar> it's not a loop, but yeah that's what it'd do
<MrZYX> it does use a loop internally ;P
<joshu> I see if I don't want an looping as the user changes the @page value how do I take the user's value and subtract 1 unless @page = 1 in which case I just leave it
<joshu> apologies if I'm not being clear
<MrZYX> @page -=1 unless @page == 1
haxrbyte_ has joined #ruby
xlab has quit [Remote host closed the connection]
rton has left #ruby [#ruby]
workmad3 has quit [Read error: Operation timed out]
foofoobar has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
k610 has quit [Ping timeout: 272 seconds]
gungor has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
<Spooner> Or: @page = [@page-1, 1].max # Well, OK, that makes more sense for numbers greater than -1
xlab has joined #ruby
_maes_ has quit [Ping timeout: 258 seconds]
mixel has joined #ruby
noxoc has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
NimeshNeema has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
<joshu> I think I almost got what I need I have this at the moment older_posts = @page + 1 unless @page == @total_pages
lxsameer has quit [Quit: Leaving]
<joshu> I just need to change the "unless" so that older_posts is set to the value of @page when @page == @total_pages is true. do I write it with the conditional ? like this
<joshu> older_posts ? @page + 1 unless @page == @total_pages
spider-mario has quit [Remote host closed the connection]
<MrZYX> I think I prefer the older_posts = [@page+1, @total_pages].min variant then
<joshu> MrZYX what do you call that variant so I can google it
<MrZYX> I don't think it has a name
splittingred has joined #ruby
feedbackloop has joined #ruby
bradhe has joined #ruby
atmosx has quit [Quit: And so the story goes…]
<joshu> hehe ok so it does what I was trying to di. it increments @page until @page equals @total_pages. what does the .min do?
<MrZYX> minimum
dfdf has quit [Remote host closed the connection]
Guest73589 is now known as martxel
jabawack81|S has joined #ruby
martxel has quit [Changing host]
martxel has joined #ruby
<jabawack81|S> Hi
noxoc has quit [Quit: noxoc]
tomzx_mac has joined #ruby
MrPoT4tO has joined #ruby
keymone has quit [Quit: keymone]
foofoobar has joined #ruby
bubblehead has quit [Ping timeout: 260 seconds]
tvw has quit []
mneorr_ has joined #ruby
Umren has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
emergion has joined #ruby
bradhe has quit [Ping timeout: 258 seconds]
rickruby has joined #ruby
thone has joined #ruby
xerxas has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
mklappst_ has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
lunchtime_ has joined #ruby
k610 has joined #ruby
thone_ has quit [Ping timeout: 255 seconds]
Nenor_ has quit [Remote host closed the connection]
rickruby has quit [Ping timeout: 272 seconds]
codecop has quit [Quit: Išeinu]
foofoobar has quit [Quit: Computer has gone to sleep.]
mklappst_ has joined #ruby
lunchtime has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: chrishough]
neku has quit [Quit: Leaving...]
tvw has joined #ruby
huoxito has joined #ruby
joeybutler1 has quit [Quit: Leaving.]
jovy88 has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
jovy88 has joined #ruby
chrishunt has joined #ruby
snuglepuss has joined #ruby
mr0wl has joined #ruby
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikestok has joined #ruby
__alpaca has joined #ruby
chris_ has joined #ruby
lewix_ has joined #ruby
mikestok has quit [Client Quit]
chiel has quit [Ping timeout: 252 seconds]
jduan1981 has quit [Quit: jduan1981]
lewix_ has quit [Remote host closed the connection]
chiel has joined #ruby
joeybutler1 has joined #ruby
lewix has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
lewix has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 272 seconds]
bluehavana has joined #ruby
brianpWins has quit [Quit: brianpWins]
mercwithamouth has joined #ruby
mneorr_ has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 258 seconds]
robscomputer has joined #ruby
daidoji has joined #ruby
miso1337 has joined #ruby
davidboy has joined #ruby
kuzushi has joined #ruby
idkazuma has quit [Remote host closed the connection]
chiel has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
RORgasm has joined #ruby
echevemaster has quit [Ping timeout: 272 seconds]
mklappst_ has quit [Remote host closed the connection]
JoeTheGuest has joined #ruby
pehlert has joined #ruby
enebo has joined #ruby
tomgrim has quit [Ping timeout: 246 seconds]
lewix has joined #ruby
rwz has joined #ruby
cam` has joined #ruby
rubycode has joined #ruby
m8 has quit [Quit: Sto andando via]
<pehlert> Hey folks. I may be mistaken here, but afaik Ruby 2.0 supports dtrace probes, right? But couldn't you use ruby:::function-entry on pre-2.0 versions as well?
cool has joined #ruby
lectrick has joined #ruby
yeban has joined #ruby
spanx_ has joined #ruby
guilleiguaran_ has joined #ruby
moeSeth has joined #ruby
randym has joined #ruby
dekz__ has joined #ruby
niftylettuce has joined #ruby
rcsheets has joined #ruby
RORgasm has quit [Ping timeout: 258 seconds]
echevemaster has joined #ruby
ericwood has quit [Ping timeout: 248 seconds]
idkazuma has joined #ruby
pcarrier has joined #ruby
ericwood has joined #ruby
mocfive has joined #ruby
enebo has quit [Quit: enebo]
ziggles has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 272 seconds]
blacktulip has quit [Remote host closed the connection]
dustmason has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sambao21 has joined #ruby
kil0byte_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
chiel has joined #ruby
octarine has quit []
kil0byte has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
r0bgleeson has quit [Read error: Connection reset by peer]
r0bgleeson has joined #ruby
mocfive has quit [Remote host closed the connection]
ggordan has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
shadoi has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
pcarrier has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
ZachBeta has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
davedev24 has joined #ruby
oneirophren has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ramblex has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
sepp2k1 has joined #ruby
gyre007 has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
joeybutler1 has quit [Quit: Leaving.]
chris_ is now known as codesoda
bhaarat has joined #ruby
bhaarat has quit [Client Quit]
MrZYX is now known as MrZYX|off
pcarrier has joined #ruby
mneorr has quit [Remote host closed the connection]
ckrailo has joined #ruby
miso1337 has quit [Quit: afk]
paolooo has joined #ruby
jamesfung14 has quit [Ping timeout: 272 seconds]
paolooo_ has joined #ruby
paolooo has quit [Client Quit]
Meeh is now known as Meeh_afk
agarie has joined #ruby
brianpWins has joined #ruby
tylersmith has joined #ruby
AgentWillyWonka has quit [Quit: Leaving...]
neku has joined #ruby
bean__ has joined #ruby
slainer68 has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 272 seconds]
gstamp has joined #ruby
IceyEC has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
__alpaca has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
kf8a has joined #ruby
pehlert has quit [Quit: Leaving.]
pietr0 has quit [Ping timeout: 255 seconds]
DementedInsanity has joined #ruby
DementedInsanity has quit [Changing host]
DementedInsanity has joined #ruby
mixel has quit [Quit: mixel]
__alpaca has quit [Ping timeout: 245 seconds]
love_color_text has quit [Remote host closed the connection]
cooldman224 has joined #ruby
mike_ng has joined #ruby
<mike_ng> Hi - can someone clear up my confusion? What do people mean by hashes? I've used hash tables and hash functions before - but when people just say hash what do they mean?
<banisterfiend> mike_ng: usually hash table
<banisterfiend> this things {}
<banisterfiend> thing*
mike_ng has quit [Client Quit]
nari has joined #ruby
neku has quit [Quit: Leaving...]
emergion has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
tylersmith has quit [Quit: tylersmith]
bean__ has quit [Ping timeout: 258 seconds]
pietr0 has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
threesome has quit [Ping timeout: 246 seconds]
bean__ has joined #ruby
AgentWillyWonka has joined #ruby
mmitchell has quit [Remote host closed the connection]
nari has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
jduan1981 has joined #ruby
mixel has joined #ruby
mneorr has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
Xeago_ has joined #ruby
IceyEC has quit [Quit: IceyEC]
kf8a has quit [Ping timeout: 245 seconds]
prime_ has joined #ruby
emergion has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
prime has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
ritek has quit [Ping timeout: 245 seconds]
emergion has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 260 seconds]
rakl has quit [Quit: sleeping]
v0yager has joined #ruby
Spooner has quit [Remote host closed the connection]
predator117 has joined #ruby
v0yager has quit [Remote host closed the connection]
v0yager has joined #ruby
tommyvyo has quit [Quit:]
bean__ has joined #ruby
emergion has joined #ruby
predator217 has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
MrPoT4tO has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
staafl has quit [Ping timeout: 246 seconds]
matchaw has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
pcarrier has joined #ruby
mixel has quit [Quit: mixel]
bhaarat has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
atno has quit [Read error: Connection reset by peer]
matchaw has quit [Remote host closed the connection]
love_color_text has joined #ruby
DonRichie has quit [Quit: Verlassend]
pac1 has quit [Ping timeout: 256 seconds]
jduan1981 has quit [Quit: jduan1981]