module Micro::Attributes::Features::Diff
Public Instance Methods
diff_attributes(to)
click to toggle source
# File lib/micro/attributes/features/diff.rb, line 6 def diff_attributes(to) return Micro::Attributes::Diff::Changes.new(from: self, to: to) if to.is_a?(::Micro::Attributes) raise ArgumentError, "#{to.inspect} must implement Micro::Attributes" end