uupaa.ruby.js

0.0.12 • Public • Published

Ruby.js Build Status

npm

Extend Ruby functions.

Document

How to use

Standard call

Ruby.uniq([1, 1]) -> [1]
Ruby.ord("ab")    -> 97

Direct call

Ruby[2].Array.prototype.uniq.call([1, 1]) -> [1]
Ruby[2].String.prototype.ord.call("ab")   -> 97

OOP Extended

Ruby(2);

[1, 1].uniq() -> [1]
"ab".ord()    -> 97

Package Sidebar

Install

npm i uupaa.ruby.js

Weekly Downloads

5

Version

0.0.12

License

MIT

Last publish

Collaborators

  • uupaa