Class: Rubsh::Shell
- Inherits:
-
Object
- Object
- Rubsh::Shell
- Defined in:
- lib/rubsh/shell.rb,
lib/rubsh/shell/env.rb
Defined Under Namespace
Classes: Env
Instance Attribute Summary collapse
- #env ⇒ Env readonly
Instance Method Summary collapse
- #command(prog) ⇒ Command (also: #cmd)
-
#initialize ⇒ Shell
constructor
A new instance of Shell.
- #pipeline(**kwarg) ⇒ RunningPipeline
Constructor Details
Instance Attribute Details
Instance Method Details
#command(prog) ⇒ Command Also known as: cmd
12 13 14 |
# File 'lib/rubsh/shell.rb', line 12 def command(prog) Command.new(self, prog) end |
#pipeline(**kwarg) ⇒ RunningPipeline
18 19 20 21 22 |
# File 'lib/rubsh/shell.rb', line 18 def pipeline(**kwarg) r = RunningPipeline.new(self).tap { |x| yield x } r.__run(**kwarg) r end |