<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]
<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]