Class: Dotman::Shell::Command
- Inherits:
-
Object
- Object
- Dotman::Shell::Command
- Defined in:
- lib/dotman/shell/command.rb
Instance Method Summary collapse
-
#initialize(str) ⇒ Command
constructor
A new instance of Command.
- #to_s(level = 0) ⇒ Object
Constructor Details
#initialize(str) ⇒ Command
Returns a new instance of Command.
3 4 5 |
# File 'lib/dotman/shell/command.rb', line 3 def initialize(str) @str = str end |
Instance Method Details
#to_s(level = 0) ⇒ Object
7 8 9 |
# File 'lib/dotman/shell/command.rb', line 7 def to_s(level = 0) (' ' * (level * 4)) + @str end |