Class: RBelly::JS::Math

Inherits:
Base
  • Object
show all
Defined in:
lib/rbelly/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/rbelly/js/math.rb', line 4

def initialize
  super
  self['PI'] = ::Math::PI
end