Class: SmallCage::Commands::Base
- Inherits:
-
Object
- Object
- SmallCage::Commands::Base
- Defined in:
- lib/smallcage/commands/base.rb
Overview
smc commands base class
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(opts) ⇒ Base
constructor
A new instance of Base.
- #quiet? ⇒ Boolean
Constructor Details
#initialize(opts) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/smallcage/commands/base.rb', line 10 def initialize(opts) @opts = opts end |
Class Method Details
.execute(opts) ⇒ Object
6 7 8 |
# File 'lib/smallcage/commands/base.rb', line 6 def self.execute(opts) new(opts).execute end |
Instance Method Details
#execute ⇒ Object
14 15 |
# File 'lib/smallcage/commands/base.rb', line 14 def execute end |
#quiet? ⇒ Boolean
17 18 19 |
# File 'lib/smallcage/commands/base.rb', line 17 def quiet? @opts[:quiet] end |