Class: JSObject

Inherits:
Object
  • Object
show all
Defined in:
lib/dnode/jsobject.rb

Defined Under Namespace

Classes: JSHash

Class Method Summary collapse

Class Method Details

.create(obj = {}) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/dnode/jsobject.rb', line 31

def self.create obj={}
    Walk.new(obj).walk do |node|
        if node.value.is_a? Hash and not node.value.is_a? JSHash then
            node.value = JSHash.create(node.value)
        end
    end
end