Class: Object

Inherits:
BasicObject
Defined in:
lib/unloosen/utils/js.rb

Instance Method Summary collapse

Instance Method Details

#to_rbObject

def to_js

return self if self.is_a?(JS::Object)
JS.try_convert(self) || JS.try_convert_hash(self)

end



206
207
208
# File 'lib/unloosen/utils/js.rb', line 206

def to_rb
  self
end