havenwood changed the topic of #ruby to: Ruby 3.3.3, 3.2.4, 3.4.0-preview1 https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
some14u- has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pusewicz has quit [Read error: Connection reset by peer]
pusewicz has joined #ruby
sam113101 has quit [Ping timeout: 256 seconds]
sam113101 has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 268 seconds]
desnudopenguino1 is now known as desnudopenguino
levitating has quit [Remote host closed the connection]
sam113101 has quit [Quit: WeeChat 4.3.2]
desnudopenguino has quit [Ping timeout: 256 seconds]
sam113101 has joined #ruby
grenierm has joined #ruby
oneeyedalien has joined #ruby
Vonter has quit [Quit: WeeChat 4.3.1]
Vonter has joined #ruby
oneeyedalien has quit [Quit: Leaving]
Triviality has joined #ruby
mange has quit [Remote host closed the connection]
osc4rpt has quit [Ping timeout: 264 seconds]
osc4rpt has joined #ruby
gaussianblue has joined #ruby
Linux_Kerio has joined #ruby
osc4rpt has left #ruby [#ruby]
Linux_Kerio has quit [Ping timeout: 246 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
qsx has joined #ruby
<qsx> i’m trying to wrap an instance members `each` method inside my class, but it doesn’t work the ways i’m trying
<qsx> so something like: class Foo; def each; @p.each; end; end – but that’s not it
gaussianblue has quit [Ping timeout: 264 seconds]
grenierm has quit [Ping timeout: 250 seconds]
heinrich5991 has joined #ruby
<leftylink> it needs ...
<leftylink> pandabot rb class C; def initialize(a); @a = a end; def each(...); @a.each(...) end end; C.new([1, 2, 3]).each { print _1 }
<pandabot> 123[1, 2, 3] - https://carc.in/#/r/gywn
<leftylink> or your preferred method of forwarding the block, but just seems like too much trouble to do it manually when ... will do it
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
whysthatso125070 has joined #ruby
Linux_Kerio has joined #ruby
<qsx> TIL ... and _1
<qsx> thx
graywolf has joined #ruby
_0x1eef has quit [Quit: Reboot]
_0x1eef has joined #ruby
<leah2> note that ... forwards all arguments, which may be confusing
Starfoxxes has joined #ruby
aindilis_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
aindilis has joined #ruby
some14u has joined #ruby
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
whysthatso125070 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
user71 has joined #ruby
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
splud has quit [Ping timeout: 256 seconds]
graywolf has quit [Quit: WeeChat 4.3.3]
some14u has joined #ruby
some14u has quit [Client Quit]
user71 has quit [Quit: Leaving]
trillion_exabyte has quit [Ping timeout: 255 seconds]
trillion_exabyte has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
itaipu has quit [Remote host closed the connection]
itaipu has joined #ruby
splud has joined #ruby
cognemo has quit [Quit: ZNC 1.8.2 - https://znc.in]
cognemo has joined #ruby
desnudopenguino has joined #ruby
<havenwood> In 3.4, out this Christmas, we can swap `_1` for `it` instead. I like the looks of it.
cappy has joined #ruby
user71 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
cappy has quit [Quit: Leaving]
dviola has quit [Ping timeout: 240 seconds]
Linux_Kerio has quit [Ping timeout: 264 seconds]
sarna has quit [Remote host closed the connection]
r3m has quit [Quit: WeeChat 4.4.0-dev]
r3m has joined #ruby
r3m has quit [Client Quit]
r3m has joined #ruby
r3m has quit [Client Quit]
r3m has joined #ruby
some14u has joined #ruby
some14u has quit [Remote host closed the connection]
some14u has joined #ruby
some14u has quit [Ping timeout: 268 seconds]
diego has joined #ruby
gproto23 has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
gproto23 has quit [Quit: Leaving]
some14u has joined #ruby
some14u has quit [Client Quit]
konsolebox has joined #ruby
Starfoxxes has quit [Remote host closed the connection]
grenierm has joined #ruby
grenierm has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
Triviality has quit [Ping timeout: 268 seconds]
brw has quit [Remote host closed the connection]
brw has joined #ruby
Linux_Kerio has joined #ruby
cappy has joined #ruby
mark22k has quit [Quit: The Lounge - https://thelounge.chat]
mark22k has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
user71 has quit [Quit: Leaving]
svartur-hrafn has joined #ruby
itaipu has quit [Ping timeout: 268 seconds]
itaipu has joined #ruby
pusewicz has quit [Remote host closed the connection]
pusewicz has joined #ruby
Guest65 has joined #ruby
<Guest65> hi, how can I use `RDoc::Text#to_html`?
<Guest65> its returning an error when i call it: `undefined method `to_html' for module RDoc::Text (NoMethodError)`
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<petru> Guest65: `include RDoc::Text` first
<leftylink> oh right, I guess that comment tells me I should have also offered to the querent that they could just do `each(&b); @a.each(&b) end` ... hmm honestly I have no good reason why I didn't present this as an option
<leftylink> I will keep it in mind
<leftylink> for any future requests
svartur-hrafn has quit [Quit: leaving]
mange has joined #ruby
<havenwood> leftylink: These days you can use an anonymous block, like: def each(&) = @a.each(&)
Guest65 has quit [Quit: Client closed]