Class: CLI::Mastermind::ExecutablePlan

Inherits:
Object
  • Object
show all
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(options=nil)
  case @block.arity
  when 1, -1 then instance_exec(options, &@block)
  else            instance_exec(&@block)
  end
end