Class: StructureWalker::Stepper
- Inherits:
-
Object
- Object
- StructureWalker::Stepper
- Defined in:
- lib/structure_walker/stepper.rb
Class Method Summary collapse
Class Method Details
.invoke(step) ⇒ Object
4 5 6 7 8 |
# File 'lib/structure_walker/stepper.rb', line 4 def invoke(step) steps_module = StructureWalker::Steps steps = steps_module.constants.grep(/STEP/).map { |e| steps_module.const_get e }.to_h steps[step] end |