00:06
some14u- has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:07
some14u has joined #ruby
00:18
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:23
pusewicz has quit [Read error: Connection reset by peer]
01:24
pusewicz has joined #ruby
01:50
sam113101 has quit [Ping timeout: 256 seconds]
01:51
sam113101 has joined #ruby
01:57
desnudopenguino1 has joined #ruby
02:00
desnudopenguino has quit [Ping timeout: 268 seconds]
02:00
desnudopenguino1 is now known as desnudopenguino
02:19
levitating has quit [Remote host closed the connection]
02:27
sam113101 has quit [Quit: WeeChat 4.3.2]
03:12
desnudopenguino has quit [Ping timeout: 256 seconds]
04:56
sam113101 has joined #ruby
05:31
grenierm has joined #ruby
06:00
oneeyedalien has joined #ruby
06:13
Vonter has quit [Quit: WeeChat 4.3.1]
06:16
Vonter has joined #ruby
06:37
oneeyedalien has quit [Quit: Leaving]
06:57
Triviality has joined #ruby
07:40
mange has quit [Remote host closed the connection]
08:08
osc4rpt has quit [Ping timeout: 264 seconds]
08:09
osc4rpt has joined #ruby
08:15
gaussianblue has joined #ruby
08:22
Linux_Kerio has joined #ruby
08:23
osc4rpt has left #ruby [#ruby]
08:28
Linux_Kerio has quit [Ping timeout: 246 seconds]
08:55
rvalue has quit [Read error: Connection reset by peer]
08:55
rvalue has joined #ruby
08:58
qsx has joined #ruby
09:01
<
qsx >
i’m trying to wrap an instance members `each` method inside my class, but it doesn’t work the ways i’m trying
09:02
<
qsx >
so something like: class Foo; def each; @p.each; end; end – but that’s not it
09:03
gaussianblue has quit [Ping timeout: 264 seconds]
09:48
grenierm has quit [Ping timeout: 250 seconds]
10:12
heinrich5991 has joined #ruby
10:29
<
leftylink >
it needs ...
10:29
<
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 }
10:33
<
leftylink >
or your preferred method of forwarding the block, but just seems like too much trouble to do it manually when ... will do it
10:36
whysthatso125070 has joined #ruby
10:53
Linux_Kerio has joined #ruby
10:55
<
qsx >
TIL ... and _1
11:19
graywolf has joined #ruby
11:22
_0x1eef has quit [Quit: Reboot]
11:23
_0x1eef has joined #ruby
11:27
<
leah2 >
note that ... forwards all arguments, which may be confusing
11:36
Starfoxxes has joined #ruby
11:49
aindilis has joined #ruby
12:09
some14u has joined #ruby
12:24
whysthatso125070 has joined #ruby
12:41
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:42
Rounin has joined #ruby
12:42
Rounin has quit [Changing host]
12:42
Rounin has joined #ruby
12:47
user71 has joined #ruby
12:53
brokkoli_origin has quit [Ping timeout: 252 seconds]
12:58
brokkoli_origin has joined #ruby
13:04
rvalue has joined #ruby
13:13
splud has quit [Ping timeout: 256 seconds]
13:18
graywolf has quit [Quit: WeeChat 4.3.3]
13:25
some14u has joined #ruby
13:26
some14u has quit [Client Quit]
13:44
user71 has quit [Quit: Leaving]
14:07
trillion_exabyte has quit [Ping timeout: 255 seconds]
14:09
trillion_exabyte has joined #ruby
14:16
some14u has joined #ruby
14:19
some14u has quit [Client Quit]
14:24
itaipu has quit [Remote host closed the connection]
14:25
itaipu has joined #ruby
14:36
splud has joined #ruby
15:05
cognemo has joined #ruby
15:10
desnudopenguino has joined #ruby
15:13
<
havenwood >
In 3.4, out this Christmas, we can swap `_1` for `it` instead. I like the looks of it.
15:14
cappy has joined #ruby
15:25
user71 has joined #ruby
16:43
rvalue has quit [Read error: Connection reset by peer]
16:44
rvalue has joined #ruby
17:02
cappy has quit [Quit: Leaving]
17:50
dviola has quit [Ping timeout: 240 seconds]
17:54
Linux_Kerio has quit [Ping timeout: 264 seconds]
18:01
sarna has quit [Remote host closed the connection]
18:03
r3m has quit [Quit: WeeChat 4.4.0-dev]
18:03
r3m has joined #ruby
18:07
r3m has quit [Client Quit]
18:08
r3m has joined #ruby
18:13
r3m has quit [Client Quit]
18:13
r3m has joined #ruby
18:35
some14u has joined #ruby
18:36
some14u has quit [Remote host closed the connection]
18:37
some14u has joined #ruby
18:46
some14u has quit [Ping timeout: 268 seconds]
18:56
diego has joined #ruby
18:56
gproto23 has joined #ruby
18:58
some14u has joined #ruby
19:01
some14u has quit [Client Quit]
19:05
gproto23 has quit [Quit: Leaving]
19:07
some14u has joined #ruby
19:11
some14u has quit [Client Quit]
19:14
konsolebox has joined #ruby
19:40
Starfoxxes has quit [Remote host closed the connection]
19:45
grenierm has joined #ruby
19:45
grenierm has quit [Client Quit]
19:54
some14u has joined #ruby
19:55
some14u has quit [Client Quit]
20:00
Triviality has quit [Ping timeout: 268 seconds]
20:17
brw has quit [Remote host closed the connection]
20:17
brw has joined #ruby
20:19
Linux_Kerio has joined #ruby
20:28
cappy has joined #ruby
20:33
mark22k has joined #ruby
20:54
Linux_Kerio has quit [Ping timeout: 260 seconds]
21:19
user71 has quit [Quit: Leaving]
21:24
svartur-hrafn has joined #ruby
21:30
itaipu has quit [Ping timeout: 268 seconds]
21:31
itaipu has joined #ruby
21:37
pusewicz has quit [Remote host closed the connection]
21:38
pusewicz has joined #ruby
21:38
Guest65 has joined #ruby
21:40
<
Guest65 >
hi, how can I use `RDoc::Text#to_html`?
21:41
<
Guest65 >
its returning an error when i call it: `undefined method `to_html' for module RDoc::Text (NoMethodError)`
22:00
ruby[bot] has quit [Remote host closed the connection]
22:00
ruby[bot] has joined #ruby
22:02
<
petru >
Guest65: `include RDoc::Text` first
22:15
<
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
22:16
<
leftylink >
I will keep it in mind
22:16
<
leftylink >
for any future requests
22:27
svartur-hrafn has quit [Quit: leaving]
23:03
mange has joined #ruby
23:32
<
havenwood >
leftylink: These days you can use an anonymous block, like: def each(&) = @a.each(&)
23:50
Guest65 has quit [Quit: Client closed]