Class: Lookout::Diff::Operations::Replace

Inherits:
Object
  • Object
show all
Includes:
Lookout::Diff::Operation
Defined in:
lib/lookout/diff/operations/replace.rb

Instance Attribute Summary

Attributes included from Lookout::Diff::Operation

#from, #to

Instance Method Summary collapse

Methods included from Lookout::Diff::Operation

#<<, #==, #>>, #foldable?, #initialize, #inspect, #parity?

Instance Method Details

#apply(object) ⇒ Object



6
7
8
# File 'lib/lookout/diff/operations/replace.rb', line 6

def apply(object)
  object.replace(self)
end