Class: ShellB::Commander
- Inherits:
-
Object
- Object
- ShellB::Commander
- Defined in:
- lib/shellb/commander.rb
Constant Summary collapse
- DEFAULT_COMMANDS =
%w[ cd pwd ].each do |cmd| def_system_command(cmd) end
Instance Attribute Summary collapse
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(shell) ⇒ Commander
constructor
A new instance of Commander.
Constructor Details
#initialize(shell) ⇒ Commander
Returns a new instance of Commander.
28 29 30 |
# File 'lib/shellb/commander.rb', line 28 def initialize(shell) @shell = shell end |
Instance Attribute Details
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
5 6 7 |
# File 'lib/shellb/commander.rb', line 5 def shell @shell end |