class CLI::Mastermind::ExecutablePlan

Executable Plan implementation. Used in Planfile Loader to generate executable plans from its DSL.

Public Instance Methods

call(options=nil) click to toggle source

Implementation of {Plan#call} which calls the block this plan was created with

@param (see Plan#call) @see Plan#call

# File lib/cli/mastermind/executable_plan.rb, line 12
def call(options=nil)
  case @block.arity
  when 1, -1 then instance_exec(options, &@block)
  else            instance_exec(&@block)
  end
end