class Ansr::OpenStructWithHashAccess
Public Instance Methods
[](key)
click to toggle source
# File lib/ansr/utils.rb, line 10 def [](key) send key end
[]=(key, value)
click to toggle source
# File lib/ansr/utils.rb, line 6 def []=(key, value) send "#{key}=", value end
merge(other_hash)
click to toggle source
# File lib/ansr/utils.rb, line 18 def merge other_hash self.class.new to_h.merge((other_hash if other_hash.is_a? Hash) || other_hash.to_h) end
merge!(other_hash)
click to toggle source
# File lib/ansr/utils.rb, line 22 def merge! other_hash @table.merge!((other_hash if other_hash.is_a? Hash) || other_hash.to_h) end
to_h()
click to toggle source
# File lib/ansr/utils.rb, line 14 def to_h @table end