<elia>
changing from `zone << offset.to_s` to `zone += offset.to_s`
<brixen>
elia: yep, totally fine
<elia>
brixen: thx
<brixen>
I didn't realize opal had immutable strings
<brixen>
this makes me very happy :)
<elia>
js fault :)
<brixen>
it's one of the things I'm doing in Rubinius X
<brixen>
immutable strings are a very good idea
<brixen>
I'm adding ByteBuffer for I/O cases
<elia>
actually we're using js strings for both String and Symbol
<brixen>
makes sense
<elia>
that's mostly performance-wise, but from time to time the "introduction of mutable strings" topic pops up
<elia>
:)
<brixen>
lol, I'm sure it does
e_dub has quit [Quit: It's a hard knock life]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<elia>
meh`_: it's red pill
<elia>
looking into Class#remove_method
<elia>
all started adding Numeric #seconds + specs from activesupport
<meh`_>
elia, a bunch of specs pass in IE6, about 54 IIRC, and they're fast
<meh`_>
everyone should use IE6
<elia>
lol, remember when I had IE4 stickers
DouweM has quit [Ping timeout: 264 seconds]
DouweM has joined #opal
e_dub has joined #opal
e_dub has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
e_dub has quit [Client Quit]
e_dub has joined #opal
e_dub has quit [Quit: It's a hard knock life]
DrShoggoth has joined #opal
kludge` has quit [Disconnected by services]
kludge` has joined #opal
kludge` has joined #opal
kludge` has quit [Changing host]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
greg___ has joined #opal
<greg___>
hey guys, I am using opal and have compiled some ruby code to js which is running ok, but now how can I access from JavaScript the ruby methods and properties of both Classes and ojbects I created in ruby?
<greg___>
all I could find in the docs is about calling methods defined in main scope: Opal.Method.$method_name();
<greg___>
say I want to return for example a "person" object created in ruby with person = Person.new
<meh`_>
greg___, that's not going to fare well
ryanstewart2 has joined #opal
<greg___>
in which way?
<meh`_>
greg___, using Opal code from JavaScript
<meh`_>
it wasn't designed to be like that
<greg___>
I see... I am using opal-jquery, and since documentation is not complete I was trying to find out what methods were available on certain html elements. So for example in ruby code I have "button = Elements["#button"]; puts button.methods. Now js console outputs all opal-jquery methods, and I wanted to try and call them on the console to fiddle a bit with them, instead then modifying ruby app, saving, recompiling and seeing result