<ylluminarious>
what i'm wondering is what this code does, as it looks rather odd and i'm having trouble discerning what it does for this `PIXI` module's classes
CoderPuppy has quit [Ping timeout: 264 seconds]
CoderPuppy_ has joined #opal
cpup has quit [Ping timeout: 264 seconds]
<meh`>
ylluminarious, it looks like a hack to bridge the native class to the class being defined
<meh`>
he should be really doing class Texture < `PIXI.Texture` instead
<ylluminarious>
huh. ok, that makes sense.
<ylluminarious>
i'll try doing `class Texture < PIXI.Texture` and see if it works
<meh`>
ylluminarious, the ` are important around PIXI.Texture
<meh`>
also it may not work properly until I finish working on my native briding rewrite
<ylluminarious>
oh, alright
<ylluminarious>
the backticks are used to embed javascript, right? i assume that's why they're important for `PIXI.Texture`
<meh`>
ylluminarious, yes
<meh`>
you're basically passing a function as the super class
<ylluminarious>
yeah
<meh`>
and it makes the native briding code kick off
<ylluminarious>
ok, interesting. what does the native briding code do?
<meh`>
it's the magic that makes most core classes work with native objects
<meh`>
Array, String and friends are native bridged classes
<ylluminarious>
ah, ok. that's interesting.
<ylluminarious>
alright, i'll this and see if it works.
<ylluminarious>
meh`, thanks
<meh`>
np
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
mraudio106 has joined #opal
<mraudio106>
test... hello
<mraudio106>
trying freenode vs kiwi...
<meh`>
hello
<mraudio106>
hey
mraudio106 has left #opal [#opal]
cpup has joined #opal
CoderPuppy_ has quit [Ping timeout: 252 seconds]
ylluminarious_ has joined #opal
ylluminarious` has joined #opal
meh` has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #opal
ylluminarious has quit [Ping timeout: 245 seconds]
ylluminarious_ has quit [Ping timeout: 245 seconds]
ylluminarious has joined #opal
ylluminarious` has quit [Ping timeout: 260 seconds]
ylluminarious has quit [Ping timeout: 240 seconds]
godd2 has quit [Remote host closed the connection]
elia has joined #opal
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #opal
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #opal
Werdeers has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
meh` has joined #opal
ylluminarious has joined #opal
e_dub has quit [Quit: e_dub]
f-3r has joined #opal
f-3r has quit [Client Quit]
elia has quit [Quit: (IRC Client: textualapp.com)]
f-3r has joined #opal
f-3r has quit [Client Quit]
cantonic has quit [Ping timeout: 264 seconds]
f-3r has joined #opal
f-3r has quit [Read error: Connection reset by peer]
<meh`>
but it seems to be 0.6 if modules is not present
<krainboltgreene>
-> /* Generated by Opal 0.6.3 */
<meh`>
yep
<meh`>
adambeynon_, ^
<krainboltgreene>
Is there a way to combine the generation of opal.js with the generation of my script?
<krainboltgreene>
Kinda surprised it's not doing that already.
<[spoiler]>
are you using bundler?
<krainboltgreene>
Yes.
<meh`>
krainboltgreene, require opal through sprockets
<[spoiler]>
maybe it's locked to version .6.3
<meh`>
it should bundle everything up
<meh`>
I mean, put a require 'opal' in your ruby
<krainboltgreene>
It is.
<meh`>
lol
<krainboltgreene>
In the rakefile.
<krainboltgreene>
My gem file is locking opal to 0.7.3beta.
<meh`>
krainboltgreene, no I mean
<meh`>
you have to add require 'opal' in your Opal script as well
<krainboltgreene>
I'm using the opal.js from the CDN.
<krainboltgreene>
Oh.
<[spoiler]>
just use the local opal.js the gem provides
<meh`>
it will pull in the runtime and corelib as well
<krainboltgreene>
Ah.
<meh`>
I think it's elia that takes care of the cdn
<adambeynon_>
CDN is opal-0.6.3 until 0.7.0 comes out of beta
<krainboltgreene>
Yeah, it worked.
<krainboltgreene>
I can tell because Atom is choking.
<meh`>
adambeynon_, it may be worthwhile to push the beta up there as well?
<krainboltgreene>
Woot, it worked.
<adambeynon_>
meh`: yes, agree with that
<krainboltgreene>
Okay, last question. I've got these classes all defined and whatever. What's the easiest way to play with those classes in the browser console?
<meh`>
krainboltgreene, a lot of pain :D
<adambeynon_>
krainboltgreene: there is a gem opal-irb if you want a ruby console in the browser
<meh`>
I prefer the pain way
<meh`>
krainboltgreene, Opal.MyClass.$new()
<krainboltgreene>
I mean yes that's kinda cool.
<krainboltgreene>
But I meant specifically that.
<meh`>
as long as you don't have to work with blocks it's not that painful