Class: CLI::Mastermind::ExecutablePlan
- Inherits:
-
Object
- Object
- CLI::Mastermind::ExecutablePlan
- Includes:
- Plan
- Defined in:
- lib/cli/mastermind/executable_plan.rb
Instance Method Summary collapse
Methods included from Plan
#add_alias, #has_children?, included, #initialize
Instance Method Details
#call(options = nil) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cli/mastermind/executable_plan.rb', line 6 def call(=nil) case @block.arity when 1, -1 then instance_exec(, &@block) else instance_exec(&@block) end end |