module LHS::Record::Merge
Public Instance Methods
deep_merge(other)
click to toggle source
# File lib/lhs/concerns/record/merge.rb, line 18 def deep_merge(other) _record.new(_data.to_h.deep_merge(other.to_h)) end
deep_merge!(other)
click to toggle source
# File lib/lhs/concerns/record/merge.rb, line 22 def deep_merge!(other) _data._raw.deep_merge!(other.to_h) end
merge(other)
click to toggle source
# File lib/lhs/concerns/record/merge.rb, line 10 def merge(other) _record.new(_data.to_h.merge(other.to_h)) end
merge!(other)
click to toggle source
# File lib/lhs/concerns/record/merge.rb, line 14 def merge!(other) _data._raw.merge!(other.to_h) end