class OpenTreeStruct
- Author
-
Igor
Public Class Methods
new(hash={})
click to toggle source
Calls superclass method
# File lib/open_tree_struct.rb, line 6 def initialize(hash={}) hash.each_pair do |k,v| hash[k] = self.class.new(v) if v.is_a?(Hash) end if hash.is_a?(Hash) super end