eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
<cahoots>
hi, i want to intercept $stdout by replacing it with my own version, but in order to do that, i need to faithfully reproduce the method signatures for some of its functions and understand what exactly it's doing. where can i see the source code for the STDOUT class, especially the .write method?
<Zerock>
cahoots: it's an IO
<cahoots>
Zerock, good point, i don't see 'def write' in there... maybe it's in io.c?
eddof13 has joined #ruby
brw has quit [Ping timeout: 240 seconds]
brw has joined #ruby
<Zerock>
cahoots: I just opened irb and looked at STDOUT.class
<Zerock>
so presumably you could replace $stdout with any IO and it would work
jl- has joined #ruby
<cahoots>
yeah, i ended up using a non-IO class which implements its methods
jl- has quit [Ping timeout: 252 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
pgib has joined #ruby
desnudopenguino has quit [Ping timeout: 272 seconds]
walez has quit [Ping timeout: 245 seconds]
cahoots has joined #ruby
desnudopenguino has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<keyvan>
anyone know a way in ruby to extract multiple rescues to reuse them,, e.g. imagine you have 'rescue MyError1,MyError2' in multiple places, and you want to centralize it. I hoped I could do rescue MyModule::MyErrorClassesArray but that of course didn't work. hope it make sense, thanks
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has quit [Ping timeout: 252 seconds]
nirvdrum has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
_ht has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 244 seconds]
protektwar has quit [Ping timeout: 272 seconds]
eddof13 has joined #ruby
nirvdrum has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
e2 has left #ruby [Closing Window]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Starfoxxes has quit [Ping timeout: 276 seconds]
eddof13 has joined #ruby
Starfoxxes has joined #ruby
walez- has quit [Quit: Leaving]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
eddof13 has joined #ruby
Linux_Kerio has quit [Ping timeout: 245 seconds]
arg_ has quit [Quit: Connection closed for inactivity]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markong has joined #ruby
maroloccio has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum has quit [Ping timeout: 244 seconds]
jpn has quit [Ping timeout: 252 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
cahoots has joined #ruby
jpn has joined #ruby
<cahoots>
hi, i want to run system('./some_cmd') without it spawning a subshell. how does one do such things
<cahoots>
for system('./some_cmd', 'additional_arg') this is fine, since ruby infers from the multiple arguments that it shouldn't spawn a subshell. but for just one string arg, it assumes
jpn has quit [Ping timeout: 245 seconds]
<cahoots>
noice, got it now
arg_ has joined #ruby
markong has quit [Ping timeout: 252 seconds]
markong has joined #ruby
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
jpn has quit [Ping timeout: 245 seconds]
jpn has joined #ruby
jl- has joined #ruby
aeris has quit [Ping timeout: 268 seconds]
aeris has joined #ruby
jl- has quit [Ping timeout: 245 seconds]
jpn has quit [Ping timeout: 245 seconds]
factor has quit [Read error: Connection reset by peer]
hexadecagram has joined #ruby
<hexadecagram>
#ruby: how can I view an installed file manifest for a gem?
factor has joined #ruby
maroloccio has quit [Quit: WeeChat 3.0]
EternalSunshine has joined #ruby
<hexadecagram>
Aha, "gem help" doesn't provide a full list of commands, "gem help commands" does. ;-)