Class: SmallCage::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/smallcage/commands/base.rb

Overview

smc commands base class

Direct Known Subclasses

Auto, Export

Class Method Summary collapse

Instance Method Summary collapse

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

#executeObject



14
15
# File 'lib/smallcage/commands/base.rb', line 14

def execute
end

#quiet?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/smallcage/commands/base.rb', line 17

def quiet?
  @opts[:quiet]
end