Sha256: c2a57fdb640880bfa1b57e35a7fc2b2736285604ab007dd5c141249c5d9b20ad
Contents?: true
Size: 740 Bytes
Versions: 4
Compression:
Stored size: 740 Bytes
Contents
Opal support for automagical native bridging ============================================ This gem gives to Opal a standard API to implement bridges to native objects and glue-less native access and usage with the `Native()` helper function. ```ruby o = Native(`$opal`) o.global.console # this will access the global console object and return it o.global.console.log('wut') # this will call the log function on the console object o.to_hash # this will return the object's properties as a Hash # you can also treat the object as an Enumerable # keep in mind that when using the `.` syntax if the property is a function, it will be called # if you want the value of the function you have to use `#[]` or `#[]=`. ```
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opal-native-0.0.4.2 | README.md |
opal-native-0.0.4.1 | README.md |
opal-native-0.0.4 | README.md |
opal-native-0.0.3 | README.md |