jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
nmollerup has quit [Ping timeout: 276 seconds]
markong has quit [Ping timeout: 245 seconds]
Al2O3 has quit [Quit: I'm quitting, thanks for all the sharks.]
nmollerup has joined #ruby
taiju has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
Mikaela has quit [Remote host closed the connection]
aeris has quit [Remote host closed the connection]
Mikaela has joined #ruby
aeris has joined #ruby
comet23 has quit [Quit: Client closed]
libsys has quit [Remote host closed the connection]
libsys has joined #ruby
nirvdrum has joined #ruby
sachot has joined #ruby
sachot has left #ruby [#ruby]
Sankalp has quit [Ping timeout: 252 seconds]
jl- has joined #ruby
stylo has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
Rounin has quit [Ping timeout: 245 seconds]
Linux_Kerio has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.6]
stylo has left #ruby [#ruby]
Sankalp has joined #ruby
gr33n7007h has joined #ruby
taiju has quit [Ping timeout: 244 seconds]
Linux_Kerio has quit [Ping timeout: 245 seconds]
robotmay has quit [Ping timeout: 255 seconds]
robotmay has joined #ruby
Ziyan has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 245 seconds]
Ziyan has quit [Ping timeout: 245 seconds]
Ziyan has joined #ruby
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
nirvdrum has quit [Quit: nirvdrum]
dionysus69 has joined #ruby
konsolebox has joined #ruby
Linux_Kerio has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
Mikaela has quit [Remote host closed the connection]
Mikaela has joined #ruby
konsolebox has quit [Quit: Leaving]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
dionysus69 has joined #ruby
_ht has joined #ruby
ur5us has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
Mikaela is now known as Aminda
jpn has joined #ruby
John_Ivan has quit [Ping timeout: 245 seconds]
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan_ has joined #ruby
Ziyan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_aeris_ has joined #ruby
Ziyan has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
aeris has quit [Remote host closed the connection]
_aeris_ is now known as aeris
jl- has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
Fridtjof has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
markong has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 276 seconds]
smp_ is now known as smp
smp has quit [Remote host closed the connection]
Tasi has joined #ruby
Tasi has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
smp has joined #ruby
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
Ziyan has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
Aminda has quit [Read error: Connection reset by peer]
aeris has quit [Write error: Connection reset by peer]
aeris has joined #ruby
Aminda has joined #ruby
jl- has joined #ruby
Rounin has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
ua__ has quit [Ping timeout: 240 seconds]
FetidToot4 has joined #ruby
FetidToot has quit [Ping timeout: 245 seconds]
FetidToot4 is now known as FetidToot
Ziyan has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 245 seconds]
jpn has joined #ruby
protektwar has quit [Ping timeout: 240 seconds]
ua_ has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
Ziyan_ has quit [Ping timeout: 255 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
John_Ivan has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
nirvdrum has joined #ruby
walez has joined #ruby
eddof13 has joined #ruby
protektwar has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 245 seconds]
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
cahoots has joined #ruby
_aeris_ is now known as aeris
jpn has joined #ruby
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…]
comet23 has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
eddof13 has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
cahoots has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cahoots has quit [Ping timeout: 245 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> cahoots: I'd consider assigning $stdout to a StringIO as pretty typical in that case.
cahoots has joined #ruby
markong has quit [Ping timeout: 252 seconds]
cahoots has quit [Ping timeout: 272 seconds]
moldorcoder7 has joined #ruby
jl- has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 245 seconds]
jpn has joined #ruby
cahoots has joined #ruby
protektwar has quit [Ping timeout: 264 seconds]
jpn has quit [Ping timeout: 240 seconds]
eddof13 has joined #ruby
comet23 has quit [Quit: Client closed]
maroloccio has joined #ruby
cahoots has quit [Quit: leaving]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arg_ has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
nirvdrum has quit [Ping timeout: 245 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
walez has joined #ruby
walez- has joined #ruby
dionysus69 has joined #ruby
walez has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
eddof13 has joined #ruby
maroloccio has quit [Ping timeout: 245 seconds]
keyvan has joined #ruby
<keyvan> hi
<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
Guest89 has joined #ruby
<Guest89> gtest
<keyvan> pass
<Guest89> ty
Guest89 has quit [Client Quit]
jl- has joined #ruby
<gr33n7007h> keyvan: rescue *MyModule::MyErrorClassesArray
<keyvan> Ah! makes sense. thank you!
<gr33n7007h> keyvan: np =)
jl- has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
nirvdrum has joined #ruby
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. ;-)
EternalSunshine has quit [Changing host]
EternalSunshine has joined #ruby