Class: Rbsh::Shell
- Inherits:
- BasicObject
- Defined in:
- lib/rbsh/shell.rb
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
-
#initialize ⇒ Shell
constructor
A new instance of Shell.
- #load_script!(script) ⇒ Object
- #method_missing(name, *args, &block) ⇒ Object
- #run! ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#load_script!(script) ⇒ Object
21 22 23 24 |
# File 'lib/rbsh/shell.rb', line 21 def load_script!(script) instance_eval(script) self end |
#run! ⇒ Object
8 9 10 11 |
# File 'lib/rbsh/shell.rb', line 8 def run! @_result.append(@_pipeline.run!) @_result end |