Module: Micro::Attributes::Features::Diff
- Defined in:
- lib/micro/attributes/features/diff.rb
Instance Method Summary collapse
Instance Method Details
#diff_attributes(to) ⇒ Object
49 50 51 52 |
# File 'lib/micro/attributes/features/diff.rb', line 49 def diff_attributes(to) return Changes.new(from: self, to: to) if to.is_a?(::Micro::Attributes) raise ArgumentError, "#{to.inspect} must implement Micro::Attributes" end |