adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 2.7.8: 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/
brw has joined #ruby
brw0 has joined #ruby
brw has quit [Remote host closed the connection]
brw has joined #ruby
brw0 has quit [Client Quit]
brw has quit [Client Quit]
brw has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 276 seconds]
newton has quit [Ping timeout: 252 seconds]
newton has joined #ruby
caedmon has joined #ruby
defectiverobot has joined #ruby
defectiverobot has quit [Remote host closed the connection]
<zaben[m]> sagax: Morning
razetime has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
antica has joined #ruby
stagec63 has quit [Ping timeout: 248 seconds]
antica has quit [Ping timeout: 265 seconds]
caedmon has quit [Ping timeout: 250 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
caedmon has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
caedmon has quit [Remote host closed the connection]
jhass has joined #ruby
caedmon has joined #ruby
Linux_Kerio has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
ap4y has quit [Remote host closed the connection]
moldorcoder7 has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 252 seconds]
grenierm has quit [Quit: Client closed]
axsuul has quit [Ping timeout: 252 seconds]
grenierm has joined #ruby
axsuul has joined #ruby
_ht has joined #ruby
Linux_Kerio has quit [Ping timeout: 248 seconds]
grenierm has quit [Quit: Ping timeout (120 seconds)]
grenierm has joined #ruby
slondr has quit [Ping timeout: 250 seconds]
hwrd has quit [Ping timeout: 250 seconds]
hwrd has joined #ruby
slondr has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
MalusVulgaris has joined #ruby
ur5us has joined #ruby
razetime has quit [Ping timeout: 255 seconds]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
Linux_Kerio has joined #ruby
teclator has joined #ruby
razetime has joined #ruby
dviola has left #ruby [WeeChat 3.8]
MalusVulgaris1 has joined #ruby
MalusVulgaris has quit [Ping timeout: 240 seconds]
MalusVulgaris1 is now known as MalusVulgaris
ur5us has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.8]
otisolsen70 has joined #ruby
gr33n7007h has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
dionysus69 has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
otisolsen70 has quit [Ping timeout: 248 seconds]
<cxl> Hi all
<cxl> I have this issue where I have a few modules that require each other to function. Is there a way to write my include statement so that the order in which they're included doesn't matter? Right now I have to keep juggling the order so that I don't get "uninitialized constant" errors.
dionysus69 has quit [Ping timeout: 260 seconds]
MalusVulgaris has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
otisolsen70 has joined #ruby
ur5us has joined #ruby
markov_twain has quit [Ping timeout: 268 seconds]
markov_twain has joined #ruby
grenierm has quit [Ping timeout: 260 seconds]
<wnd> maybe it is because my c background, but even with Ruby I have each file require files they, well, require
<wnd> also, you may want to have a look at require_relative instead of require './foo'
MalusVulgaris has joined #ruby
<cxl> Even with the explicit require in the file, I'm having issues
MalusVulgaris has quit [Ping timeout: 252 seconds]
leonthemisfit has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 240 seconds]
<wnd> oh, I missed the obvious thing you even pointed out in the code examples \o/
<wnd> I'm going to demonstrate why I should've kept quiet in the first place. Someone else will have to explain (this better). :-)
<wnd> Usually we include or extend a module into a class. If we wants to call (module) Foo.foo_method, we get to define it as "def self.foo_method". Maybe you're trying to use modules for something they're not intended for.
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp- is now known as Sankalp
shokohsc9 has joined #ruby
shokohsc has quit [Ping timeout: 255 seconds]
shokohsc9 is now known as shokohsc
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
reset has quit [Quit: reset]
teclator has quit [Ping timeout: 260 seconds]
infinityfye has joined #ruby
bambanxx has joined #ruby
Lox has joined #ruby
<Lox> Is there anyone who can explain the following to me?
<Lox> ```
<Lox> # Since Ruby 3 (tested on 3.0.5, 3.2.0)
<Lox> irb(main):005:0> [1, 2, 3].to_enum.lazy.zip([:a, :b, :c]).map(&:last).to_a
<Lox> (irb):5:in `each': undefined method `last' for 1:Integer (NoMethodError)
<Lox> ```
<Lox> It looks like the `zip` is completely ignored:
<Lox> [1, 2, 3].to_enum.lazy.zip([:a, :b, :c]).map { |x| x }.to_a
<Lox> => [1, 2, 3]
<Lox> Used to work fine on Ruby 2.7, and I can't immediately find any changelog related to that
<leah2> > [1, 2, 3].to_enum.lazy.zip([:a, :b, :c]).map { |*x| x }.to_a
<leah2> >> 2+3
<ruby[bot]> leah2: # => 5 (https://carc.in/#/r/etcp)
<leah2> >> [1, 2, 3].to_enum.lazy.zip([:a, :b, :c]).map { |*x| x }.to_a
<ruby[bot]> leah2: # => [[1, :a], [2, :b], [3, :c]] (https://carc.in/#/r/etcq)
<Lox> Oh, wow
<Lox> Yeah, you're right!
<Lox> Is this a hidden `kwarg` change? :D
<leah2> i wonder how to get an array out of it lazily
<Lox> > [1, 2, 3].to_enum.lazy.zip([:a, :b, :c]).map { |*x| x.last }.to_a
<Lox> I'm still confused, looks like it's only happening with a lazy enumerator: https://gist.github.com/TomNaessens/390e7b011c6571708e1d6a16911da4cc
<leah2> yeah it feels a bit weird
<Lox> I'll see if I can find anything on the issuelist, and report it if I can't find anything. I'm happy with the solution to use `*x` as an argument now so I can proceed, thanks leah2!
teclator has joined #ruby
moldorcoder7 has joined #ruby
donofrio has joined #ruby
Lox has quit [Quit: Client closed]
MalusVulgaris has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
stagec63 has joined #ruby
drainpipe has joined #ruby
MalusVulgaris1 has joined #ruby
MalusVulgaris has quit [Ping timeout: 250 seconds]
MalusVulgaris1 is now known as MalusVulgaris
MalusVulgaris has quit [Quit: MalusVulgaris]
teclator has quit [Ping timeout: 260 seconds]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
stagec63 has quit [Ping timeout: 265 seconds]
szkl has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
Artea has quit [Read error: Connection reset by peer]
Artea has joined #ruby
TomyLobo has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
dionysus69 has joined #ruby
bambanxx has joined #ruby
autodev has joined #ruby
leonthemisfit has joined #ruby
leonthemisfit has quit [Changing host]
leonthemisfit has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
autodev has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
autodev has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
autodev has quit [Remote host closed the connection]
markov_twain has quit [Quit: markov_twain]
autodev has joined #ruby
autodev has quit [Ping timeout: 248 seconds]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
caedmon has joined #ruby
autodev has joined #ruby
autodev has quit [Read error: Connection reset by peer]
autodev has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
drainpipe has quit [Ping timeout: 268 seconds]
AlexBrownSobinec has joined #ruby
AlexBrownSobinec has quit [Client Quit]
gcd has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 268 seconds]
reset has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Ping timeout: 268 seconds]
johnjaye has quit [Quit: WeeChat 3.0]
johnjaye has joined #ruby
Linux_Kerio has quit [Ping timeout: 250 seconds]
mexen has joined #ruby
drainpipe has joined #ruby
autodev has joined #ruby
pvb has quit [Ping timeout: 248 seconds]
otisolsen70 has quit [Quit: Leaving]
_ht has quit [Quit: _ht]
goldfish has joined #ruby
xuochi has joined #ruby
hightower2 has joined #ruby
stagec63 has joined #ruby
antica has joined #ruby
johnjaye has quit [Ping timeout: 248 seconds]
stagec63 has quit [Ping timeout: 255 seconds]
johnjaye has joined #ruby
antica has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
autodev has quit [Remote host closed the connection]
tomtmym has quit [Quit: Gone.]
Perflosopher has quit [Quit: The Lounge - https://thelounge.chat]
xuochi has quit [Remote host closed the connection]
Linux_Kerio has joined #ruby
xuochi has joined #ruby
xuochi has quit [Quit: ChatZilla 0.16 [SeaMonkey 2.53.16/20230331000000]]
mexen has quit []
autodev has joined #ruby
Perflosopher has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-dev]
r3m has joined #ruby
stagec63 has joined #ruby
autodev has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 268 seconds]
stagec63 has quit [Ping timeout: 255 seconds]
ap4y has joined #ruby
drainpipe has quit [Ping timeout: 250 seconds]
shokohsc5 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc5 is now known as shokohsc
infinityfye has quit [Quit: Leaving]
markov_twain has joined #ruby
markov_twain has quit [Read error: Connection reset by peer]
drainpipe has joined #ruby
markov_twain has joined #ruby
drainpipe has quit [Ping timeout: 276 seconds]
markov_twain has quit [Quit: markov_twain]
infernix has quit [Ping timeout: 268 seconds]
drainpipe has joined #ruby
infernix has joined #ruby
drainpipe has quit [Ping timeout: 260 seconds]