Class: RBelly::JS::Math
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Math
constructor
A new instance of Math.
Methods inherited from Base
#[], #[]=, #can_put?, #default_value, #delete, #has_property?, #returned?
Constructor Details
#initialize ⇒ Math
Returns a new instance of Math.
4 5 6 7 |
# File 'lib/rbelly/js/math.rb', line 4 def initialize super self['PI'] = ::Math::PI end |