<_elia>
jgn, saw the question, usually is not what you want for global stuff (you set the @a ivar on the main object)
dimaursu16 has joined #opal
meh` has quit [Ping timeout: 245 seconds]
e_dub has quit [Quit: ZZZzzz…]
_elia has quit [Quit: Computer has gone to sleep.]
e_dub has joined #opal
elia has joined #opal
kofno has joined #opal
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
<jgn>
Regarding "clearing" the runtime: My use case is eval'ing Ruby in the browser in a series of slides. I wish I could "reset" the context so that instance variables and classes don't linger around between evals.
<jgn>
It occurred to me to create a module and the evaluate in the context of the module, though the constant names for created classes won't be what I want.
<jgn>
ALso: When I write: Opal.Opal.$eval(...) what is the difference between the top-level Opal and the Opal owned by it?
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
e_dub has quit [Client Quit]
elia has joined #opal
jgn_ has joined #opal
jgn_ is now known as tuke
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
e_dub has joined #opal
e_dub has quit [Client Quit]
DrShoggoth has joined #opal
e_dub has joined #opal
kofno has quit [Quit: Connection closed for inactivity]
e_dub has quit [Quit: ZZZzzz…]
tuke has quit [Quit: tuke]
ryanstout has joined #opal
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Quit: It's a hard knock life]
<adambeynon>
jgn: `Opal` is the namespace for the opal runtime, and all top level modules/constants are stored on it
<adambeynon>
so `Opal.Opal` refers to the ::Opal ruby module
<adambeynon>
`Opal.Array` would be ::Array, etc
j_mcnall_ has joined #opal
j_mcnall_ is now known as j_mcnally
elia has joined #opal
elia has quit [Client Quit]
elia has joined #opal
<jgn>
thanks adambeynon
jgn has quit [Quit: Page closed]
j_mcnally has quit [Ping timeout: 264 seconds]
j_mcnally has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
seamon has joined #opal
seamon has quit [Quit: Zzzzzzz]
elia has joined #opal
DrShoggoth has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Quit: (IRC Client: textualapp.com)]