Class: Sprinkle::Commands::Command
- Defined in:
- lib/sprinkle/commands/command.rb
Instance Method Summary collapse
-
#initialize(str, opts = {}) ⇒ Command
constructor
A new instance of Command.
- #string ⇒ Object
- #sudo? ⇒ Boolean
Constructor Details
#initialize(str, opts = {}) ⇒ Command
Returns a new instance of Command.
5 6 7 8 9 10 |
# File 'lib/sprinkle/commands/command.rb', line 5 def initialize(str, opts = {}) @sudo = opts[:sudo] @str = str # this is a dummy class for now, not intended to be used directly raise end |
Instance Method Details
#string ⇒ Object
16 17 18 19 |
# File 'lib/sprinkle/commands/command.rb', line 16 def string # TODO: sudo @str end |
#sudo? ⇒ Boolean
12 13 14 |
# File 'lib/sprinkle/commands/command.rb', line 12 def sudo? @sudo end |