Class: CLI::Mastermind::ExecutablePlan
- Inherits:
-
Object
- Object
- CLI::Mastermind::ExecutablePlan
- Includes:
- Plan
- Defined in:
- lib/cli/mastermind/executable_plan.rb
Overview
Executable Plan implementation. Used in Planfile Loader to generate executable plans from its DSL.
Instance Method Summary collapse
-
#call(options = nil) ⇒ Object
Implementation of Plan#call which calls the block this plan was created with.
Methods included from Plan
#add_alias, #has_children?, included, #initialize
Instance Method Details
#call(options = nil) ⇒ Object
Implementation of Plan#call which calls the block this plan was created with
12 13 14 15 16 17 |
# File 'lib/cli/mastermind/executable_plan.rb', line 12 def call(=nil) case @block.arity when 1, -1 then instance_exec(, &@block) else instance_exec(&@block) end end |