Method: Funkr::Types::SimpleRecord#with
- Defined in:
- lib/funkr/types/simple_record.rb
#with(new_key_vals) ⇒ Object
Update a simple record non-destructively
64 65 66 67 |
# File 'lib/funkr/types/simple_record.rb', line 64 def with(new_key_vals) check_keys(new_key_vals.keys) self.class.new(@key_vals.merge(new_key_vals)) end |