Class: ObjectiveCommand::Shell::Simple
- Includes:
- MethodMissing
- Defined in:
- lib/objective_command/shell.rb
Overview
module MethodMissing
Instance Attribute Summary collapse
-
#runner ⇒ Object
Returns the value of attribute runner.
-
#shell_options ⇒ Object
Returns the value of attribute shell_options.
Instance Method Summary collapse
-
#initialize(runner = nil, options = nil, &block) ⇒ Simple
constructor
A new instance of Simple.
Methods included from MethodMissing
Constructor Details
#initialize(runner = nil, options = nil, &block) ⇒ Simple
Returns a new instance of Simple.
38 39 40 41 42 43 44 |
# File 'lib/objective_command/shell.rb', line 38 def initialize runner=nil, =nil, &block @runner = runner || OCmd::Runners::System.new @shell_options = || {} other_opts = @shell_options.keys - [:frozen] @runner. other_opts block.bind(self).call if block end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ObjectiveCommand::Shell::MethodMissing
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
36 37 38 |
# File 'lib/objective_command/shell.rb', line 36 def runner @runner end |
#shell_options ⇒ Object
Returns the value of attribute shell_options.
36 37 38 |
# File 'lib/objective_command/shell.rb', line 36 def @shell_options end |