Method: Blacklight::NestedOpenStructWithHashAccess#merge!
- Defined in:
- lib/blacklight/nested_open_struct_with_hash_access.rb
#merge!(other_hash) ⇒ OpenStructWithHashAccess
Merge the values of another OpenStruct or Hash into this object
83 84 85 |
# File 'lib/blacklight/nested_open_struct_with_hash_access.rb', line 83 def merge! other_hash @table.merge!(nested_class, (other_hash if other_hash.is_a? Hash) || other_hash.to_h) end |