havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.0, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
tomtmym has quit [Quit: Gone.]
dionysus69 has quit [Ping timeout: 260 seconds]
caedmon has joined #ruby
davidw_ has quit [Ping timeout: 248 seconds]
gonix has joined #ruby
caedmon has quit [Quit: caedmon]
markong has quit [Read error: Connection reset by peer]
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
yos has quit [Ping timeout: 252 seconds]
kovital has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 265 seconds]
markong has joined #ruby
jtperreault has quit [Quit: WeeChat 1.4]
caedmon has joined #ruby
Guest7536 has joined #ruby
markong has quit [Ping timeout: 248 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest7536 has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
yos has joined #ruby
yos has quit [Changing host]
yos has joined #ruby
yossarian has quit [Ping timeout: 248 seconds]
hightower4 has joined #ruby
crankharder has quit [Ping timeout: 255 seconds]
hightower3 has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
haxn9k has joined #ruby
haxn9k has quit [Client Quit]
haxn9k has joined #ruby
kovital has quit [Ping timeout: 268 seconds]
dza has quit [Quit: ]
dza has joined #ruby
dza has quit [Client Quit]
crankharder has quit [Ping timeout: 248 seconds]
dza has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
moldorcoder7_ has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
yos has quit [Ping timeout: 255 seconds]
yossarian has joined #ruby
yossarian has joined #ruby
yossarian has quit [Changing host]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 3.7.1]
davidw_ has joined #ruby
haxn9k has quit [Ping timeout: 265 seconds]
davidw_ has quit [Ping timeout: 248 seconds]
phenom has quit [Quit: Everyone has a plan until they get punched in the face. -Mike Tyson-]
phenom has joined #ruby
dviola has joined #ruby
dviola has quit [Quit: WeeChat 3.8]
gonix has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
dviola has joined #ruby
polishdub has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
Furai has quit [Quit: WeeChat 3.8]
leon_ has joined #ruby
leon_ is now known as Guest588
leonthemisfit has quit [Ping timeout: 252 seconds]
Furai has joined #ruby
teclator has joined #ruby
otisolsen70 has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
leon_ has joined #ruby
leon_ is now known as Guest5226
Guest588 has quit [Ping timeout: 248 seconds]
Linux_Kerio has joined #ruby
moldorcoder7 has joined #ruby
ur5us has joined #ruby
agent_white has quit [Quit: night]
TomyWork has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
Vonter has quit [Quit: WeeChat 3.8]
Vonter has joined #ruby
dionysus69 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
A_Dragon has quit [Ping timeout: 620 seconds]
kovital has joined #ruby
A_Dragon has joined #ruby
uics has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
otisolsen70 has quit [Quit: Leaving]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
haxn9k has joined #ruby
kovital has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
haxn9k has quit [Ping timeout: 260 seconds]
otisolsen70 has joined #ruby
uics has quit [Remote host closed the connection]
uics has joined #ruby
moldorcoder7 has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
moldorcoder7 has quit [Ping timeout: 260 seconds]
hightower4 has quit [Quit: Leaving]
moldorcoder7 has joined #ruby
yos has joined #ruby
yos has quit [Changing host]
yos has joined #ruby
yossarian has quit [Ping timeout: 255 seconds]
uics has quit [Remote host closed the connection]
uics has joined #ruby
gastus has joined #ruby
<gastus> Ruby > 3.0 ignores require 'debug' what is my problem ?
wand_ has joined #ruby
<leah2> works here?
<leah2> do you have the gem?
wand has quit [Remote host closed the connection]
<leftylin1> funnily enough, it's broken in irb for me, which was a look of disapproval moment
<leftylin1> /usr/lib/ruby/3.0.0/debug.rb:6:in `<top (required)>': undefined method `>' for nil:NilClass (NoMethodError)
<leftylin1> great job
<leftylin1> oh huh I only have Ruby 3.0? not 3.1 or 3.2? weird
<leah2> idk how it works but i can require 'debug' and run debugger
<leah2> on 31.3
<leftylin1> damn why am I so far behind on Ruby versoin... that's sad as hell
uics has quit [Remote host closed the connection]
<leftylin1> I like Ruby
<gastus> So its the packaging of nixos linux then maybe. 2.7 works 3.0 3.1 doesn't. It just gets ignored.
markong has joined #ruby
jtperreault has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp- is now known as Sankalp
jhawthorn has quit [Read error: Connection reset by peer]
jhawthorn has joined #ruby
moldorcoder7 has quit [Ping timeout: 248 seconds]
moldorcoder7 has joined #ruby
moldorcoder7 has quit [Ping timeout: 248 seconds]
moldorcoder7 has joined #ruby
otisolsen70 has quit [Ping timeout: 260 seconds]
otisolsen70_ has joined #ruby
gonix has joined #ruby
crankharder has joined #ruby
kovital has joined #ruby
otisolsen70_ has quit [Read error: Connection reset by peer]
otisolsen70_ has joined #ruby
davidw_ has joined #ruby
markong has quit [Ping timeout: 260 seconds]
kovital has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
davidw_ has quit [Ping timeout: 260 seconds]
gastus has quit [Ping timeout: 260 seconds]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gastus has joined #ruby
davidw_ has joined #ruby
dviola has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
kovital has joined #ruby
walez has joined #ruby
gonix has quit [Remote host closed the connection]
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
eddof13 has joined #ruby
_ht has joined #ruby
caedmon has joined #ruby
<ox1eef_> leah2 likes Ruby so much they've travelled into the future to run Ruby v31.3 xD
<leah2> for workgroups!
dionysus69 has quit [Ping timeout: 260 seconds]
<adam12> lol
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
stenno has joined #ruby
<stenno> good day, where can i find the official docs for the '&&' and '||' operator? I looked at https://ruby-doc.org/core-2.2.10/Fixnum.html but its not listed there
<stenno> that page only lists &
<stenno> neither up the parent tree
<adam12> stenno: I'm not sure there's docs on those methods. They are just generic AND / OR methods.
<adam12> rather, they are not even methods.
<ox1eef_> Only thing notable I can think about them is that they have higher precendence than and/or.
caedmon has quit [Ping timeout: 248 seconds]
<jidar> http://ruby-doc.com/docs/ProgrammingRuby/html/tut_expressions.html covers some expressions with binary logic
<stenno> ok then where is AND/OR documented?
<jidar> Defined?, And, Or, and Not
<jidar> > Just to make life interesting, ``and'' and ``or'' have the same precedence, while ``&&'' has a higher precedence than ``||''.
<stenno> i am asking because the result of the expression `foo = 'foo' && 'bar'` is not immediately obvious
<stenno> some language treat && as that value select, other return a boolean value
<ox1eef_> Ruby doesn't return a value but the last value that wasn't nil or false.
<ox1eef_> a boolean* not value
<stenno> yes indeed
<stenno> i wondered where that is documented
<ox1eef_> Don't know of any place it is documented officially. The ruby-doc.org page I linked to above is probably the best shot. There's a lot more .rdoc documents that explain Ruby semantics at a high level.
<stenno> fair, thanks
<stenno> similar for `not`, i'd guess
<ox1eef_> not will turn whatever you give it into a boolean.
<stenno> i mean WRT to documentation :P
<stenno> -to
<ox1eef_> Ah, yeah - most likely.
<stenno> found an open issue regarding that topic from 'more than 4 years ago' https://bugs.ruby-lang.org/issues/14768
<adam12> We need a new & improved quickref.
<adam12> But hosted on docs.ruby-lang.org.
<stenno> i find it fascinating that || and ?? are not operators as in instance methods, but more like language constructs like `if` etc
<adam12> stenno: There are some libraries, like Sequel, that would ordinarily lean on || and && to be methods, but couldnt', so had to resort to methods that look similar. ie. Sequel.expr { (foo !~ "bar") & (bar =~ "baz") }
<stenno> wow, interesting
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
stenno has quit [Ping timeout: 268 seconds]
teclator has quit [Ping timeout: 248 seconds]
caedmon has joined #ruby
stenno has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
crankharder has quit [Ping timeout: 248 seconds]
Demi_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
crankharder has joined #ruby
<leftylin1> huh... very frustrating that there are no docs for those
Demi has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
konsolebox has joined #ruby
dviola has quit [Ping timeout: 248 seconds]
haxn9k has joined #ruby
kovital has quit [Ping timeout: 260 seconds]
haxn9k has quit [Ping timeout: 260 seconds]
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
walez has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
davidw_ has quit [Remote host closed the connection]
davidw_ has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
dviola has joined #ruby
Hobbyboy has quit [Quit: The BNC has broken!]
Hobbyboy has joined #ruby
teclator has joined #ruby
otisolsen70_ has quit [Quit: Leaving]
ur5us has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
dionysus69 has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
_ht has quit [Remote host closed the connection]
crankharder has joined #ruby
Guest35 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Guest35 has quit [Quit: Client closed]
balo has quit [Quit: leaving]
davidw_ has quit [Ping timeout: 246 seconds]
balo has joined #ruby
davidw_ has joined #ruby
TomyWork has quit [Remote host closed the connection]
Linux_Kerio has quit [Ping timeout: 268 seconds]
r3m has quit [Quit: WeeChat 3.9-dev]
Linux_Kerio has joined #ruby
r3m has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
r3m has quit [Client Quit]
r3m has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
r3m has quit [Client Quit]
infernix has joined #ruby
r3m has joined #ruby
infernix has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
infernix has joined #ruby
psj has joined #ruby
psj has quit [Remote host closed the connection]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
tomtmym has quit [Quit: Gone.]
desnudopenguino has quit [Read error: Connection reset by peer]
desnudopenguino has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
davidw_ has quit [Ping timeout: 248 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]