Module: Smith::Workflow::SplitStepPersistence::Inheritance

Defined in:
lib/smith/workflow/split_step_persistence/inheritance.rb

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ Object



7
8
9
10
# File 'lib/smith/workflow/split_step_persistence/inheritance.rb', line 7

def inherited(subclass)
  super
  subclass.prepend(SubclassBoundary)
end

#prepend(*features) ⇒ Object



12
13
14
15
16
# File 'lib/smith/workflow/split_step_persistence/inheritance.rb', line 12

def prepend(*features)
  result = super
  Module.instance_method(:prepend).bind_call(self, SubclassBoundary.guard)
  result
end