Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/oa_test/oa_config.rb

Instance Method Summary collapse

Instance Method Details

#_to_hashObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/oa_test/oa_config.rb', line 5

def _to_hash
  h = @table
  #handles nested structures
  h.each do |k,v|
    if v.class == OpenStruct
      h[k] = v._to_hash
    end
  end
  return h
end