It is source-to-source, making it fast as a runtime. Opal includes a compiler (which can be run in any browser), a corelib and runtime implementation. The corelib/runtime is also very small.
Opal Documentation opal.min.js opal-parser.min.js Use the CDN
Opal is hosted on GitHub .
You can join the community by chatting on Gitter at opal/opal or on Freenode IRC (channel: #opal
).
Ask questions on stackoverflow by using the #opalrb tag.
Or discuss on the mailing list or on Twitter @opalrb.
class User
attr_accessor :name
def initialize(name)
@name = name
end
def admin?
@name == 'Admin'
end
end
user = User.new('Bob')
puts user
puts user.admin?
Install Opal from RubyGems: bandar togel online
$ gem install opal
Or include it in your Gemfile
for Bundler: togelin
gem 'opal'
situs toto - toto togel - dultogel
-togelin