havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.3, 3.0.5, 2.7.7, 3.2.0-rc1: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
paul_ has joined #ruby
<paul_> hello
<paul_> anyone alive?
<paul_> join #cucumber
John_Ivan_ has joined #ruby
John_Ivan has quit [Ping timeout: 268 seconds]
<weaksauc_> howdy paul_
crax23 has quit [Quit: Leaving]
<leftylink> I resent being told what channel to join
<paul_> hi weaksauc_
<paul_> are you around?
<paul_> sorry had a phone call with my dad
markong has quit [Ping timeout: 256 seconds]
meimei has quit [Remote host closed the connection]
pounce has quit [Remote host closed the connection]
meimei has joined #ruby
pounce has joined #ruby
<weaksauc_> what's up paul_
szkl has quit [Quit: Connection closed for inactivity]
cartdrige has joined #ruby
caedmon has joined #ruby
caedmon1 has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon1 is now known as caedmon
caedmon has quit [Ping timeout: 260 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
<paul_> weaksauc_ sorry about that
<paul_> I was busy with talking to group members
<paul_> just trying to get a projet done
<leftylink> this is IRC. on IRC you are not supposed to apologise for being AFK because you do not apologise for things that are normal
<ox1eef_> s/IRC/internet/g
FullMetalStacker has quit [Remote host closed the connection]
paul__ has joined #ruby
crax23 has joined #ruby
caedmon has joined #ruby
FullMetalStacker has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 268 seconds]
crax23 has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
Y05hito__ has quit [Ping timeout: 252 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
FullMetalStacker has quit [Remote host closed the connection]
caedmon has joined #ruby
FullMetalStacker has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
caedmon has quit [Ping timeout: 268 seconds]
Sheilong has quit []
Rounin has quit [Ping timeout: 246 seconds]
paul_ has quit [Quit: Leaving]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Linux_Kerio has joined #ruby
moldorcoder7 has quit [Ping timeout: 268 seconds]
ssh0732 has quit [Remote host closed the connection]
aeris has quit [Read error: Connection reset by peer]
Aminda has quit [Write error: Connection reset by peer]
Aminda has joined #ruby
aeris has joined #ruby
ssh0732 has joined #ruby
ur5us has joined #ruby
stirl has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 260 seconds]
reset has joined #ruby
<tsujp> If I put an expression outside of a class method (but inside the class) what _is_ that expression, how does it execute? E.g. `class Foo; what = 5 * 5; def bar; "bar return value" end; end`
<tsujp> is `what = 5 * 5` evaluated whenever the file defining `Foo` is included? Or is it evaluated whenever a new instance of `Foo` is created? How does that bit of code execute
<tsujp> I know you can put e.g. class-shared variables like `@@abc` and attribute accessors in that same "area" of the class but those are defined _things_
<tsujp> idk, am a bit confused here
<sam113101> tsujp: it's evaluated as soon as it's read
<sam113101> well
<sam113101> when Foo is being defined
<tsujp> So the second the Ruby interpreter sees that code it's evaluated, so if using autoload it'd be evaluated the second that class is loaded in. If `require`'d the second it's required, if on the IRB the second you press the enter key to give it to the Ruby interpreter
<sam113101> you know, nothing stops you from putting a "statement" like "puts 'test'" and see for yourself
<sam113101> doesn't have to be a variable declaration
<tsujp> oh right derp, sorry
<tsujp> a bit clumsy today lmfao
sixpiece has quit [Quit: Leaving]
paul__ has quit [Quit: Leaving]
stirl has quit [Ping timeout: 252 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp- is now known as Sankalp
Linux_Kerio has quit [Ping timeout: 264 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
<tsujp> How can I hook a class method which is overriden by the inheriting class? Short example gist of what I want to do here: https://gist.github.com/tsujp/9dfed9cea7acf30389496f0f3529865e
<leftylink> argh. maybe can clients be instructed to call something like hooked_invoke(args), and Command defines hooked_invoke(args) to be invoke_hook; invoke(args) ? then subclasses implement invoke as usual and all is good
<leftylink> or Ig uess inthe above message invoke can be renamed to something internal like invoke_impl, hooked_invoke can just be renamed to invoke, and subclasses implement invoke_impl or something
<leftylink> there is of course the option of using TracePoint to detect calls to invoke and do the right thing but I think it is not the right tool for the job here
<leftylink> because I may have understandability concerns on the TracePoint way
<tsujp> Hmm true, I suppose I was overthinking it
<tsujp> `invoke` calls `invoke_impl` and `invoke_impl` is the thing the child class has to implement
gonix has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
gonix has quit [Ping timeout: 260 seconds]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
FullMetalStacker has joined #ruby
tumdum has quit [Remote host closed the connection]
tumdum has joined #ruby
tumdum has quit [Remote host closed the connection]
crax23 has quit [Quit: Leaving]
tumdum has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
cartdrige has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
cryptkeeper has quit [Quit: Connection closed for inactivity]
FullMetalStacker has quit [Client Quit]
szkl has joined #ruby
FullMetalStacker has joined #ruby
Rounin has joined #ruby
Aminda has quit [Remote host closed the connection]
moldorcoder7 has joined #ruby
Aminda has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Aminda has quit [Ping timeout: 255 seconds]
Aminda has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
aeris has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ssh07329 has joined #ruby
ssh0732 has quit [Ping timeout: 255 seconds]
ssh07329 is now known as ssh0732
dionysus69 has joined #ruby
_ht has joined #ruby
crankharder has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
crax23 has quit [Ping timeout: 256 seconds]
crankharder has quit [Ping timeout: 246 seconds]
joto has joined #ruby
Linux_Kerio has joined #ruby
markong has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
Fridtjof has joined #ruby
teclator has joined #ruby
cartdrige has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
giorgian has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dionysus69 has quit [Ping timeout: 256 seconds]
giorgian has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
giorgian has joined #ruby
giorgian has quit [Remote host closed the connection]
kaivai has quit [Quit: ZNC - https://znc.in]
crankharder has quit [Ping timeout: 268 seconds]
kaivai has joined #ruby
some14u has joined #ruby
mooff has quit [Remote host closed the connection]
crankharder has joined #ruby
mooff has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
markong has quit [Ping timeout: 246 seconds]
hightower2 has quit [Remote host closed the connection]
some14u has quit [Quit: Textual IRC Client: www.textualapp.com]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
crankharder has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
cryptkeeper has joined #ruby
FullMetalStacker has quit [Client Quit]
ur5us has joined #ruby
cartdrige has joined #ruby
crankharder has joined #ruby
crax23 has quit [Ping timeout: 256 seconds]
crankharder has quit [Ping timeout: 256 seconds]
seisatsu has joined #ruby
_ht has quit [Remote host closed the connection]
reset has quit [Quit: reset]
Al2O3 has quit [Ping timeout: 246 seconds]
Al2O3 has joined #ruby
markong has joined #ruby
dviola has joined #ruby
crankharder has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
teclator has joined #ruby
ruby[bot] has joined #ruby
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
Guest3810 has joined #ruby
crax23 has quit [Ping timeout: 264 seconds]
Guest3810 has quit [Quit: Connection closed]
crankharder has quit [Quit: leaving]
sympt has quit [Ping timeout: 260 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]