Class: RKelly::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/rkelly/js/math.rb', line 4 def initialize super self['PI'] = ::Math::PI end |