class Shapeshifter::Shifter

Attributes

source_object[R]

Public Class Methods

chain(shifter) click to toggle source
# File lib/shapeshifter/shifter.rb, line 10
def chain(shifter)
  ShiftChain.new(self).chain(shifter)
end
new(source_object) click to toggle source
# File lib/shapeshifter/shifter.rb, line 5
def initialize(source_object)
  @source_object = source_object
end
revert(source_object, target_object) click to toggle source
# File lib/shapeshifter/shifter.rb, line 18
def revert(source_object, target_object)
  ShiftChain.new(self).revert(source_object, target_object)
end
shift(source_object, target_object) click to toggle source
# File lib/shapeshifter/shifter.rb, line 14
def shift(source_object, target_object)
  ShiftChain.new(self).shift(source_object, target_object)
end

Public Instance Methods

revert(_) click to toggle source
# File lib/shapeshifter/shifter.rb, line 28
def revert(_)
  raise NoMethodError.new('Should be overridden')
end
shift(_) click to toggle source

:nocov:

# File lib/shapeshifter/shifter.rb, line 24
def shift(_)
  raise NoMethodError.new('Should be overridden')
end