Class: RKelly::JS::Math

Inherits:
Base
  • Object
show all
Defined in:
lib/rkelly/js/math.rb

Instance Attribute Summary

Attributes inherited from Base

#properties, #return, #value

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #can_put?, #default_value, #delete, #has_property?, #returned?

Constructor Details

#initializeMath

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