Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/johnson/tracemonkey/js_land_proxy.rb,
lib/johnson/spidermonkey/js_land_proxy.rb

Overview

FIXME: This definition should probably be somewhere else

Instance Method Summary collapse

Instance Method Details

#js_propertiesObject



6
7
8
# File 'lib/johnson/tracemonkey/js_land_proxy.rb', line 6

def js_properties
  (0...size).to_a
end

#js_property?(name) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/johnson/tracemonkey/js_land_proxy.rb', line 3

def js_property?(name)
  name == :length
end