Class: EncoderTools::CLI::Base
- Inherits:
-
Object
- Object
- EncoderTools::CLI::Base
- Defined in:
- lib/encoder-tools/cli/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
-
#initialize(shell, options = {}) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Constructor Details
#initialize(shell, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/encoder-tools/cli/base.rb', line 6 def initialize(shell, ={}) @shell, @options = shell, end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/encoder-tools/cli/base.rb', line 4 def @options end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
4 5 6 |
# File 'lib/encoder-tools/cli/base.rb', line 4 def shell @shell end |
Instance Method Details
#run ⇒ Object
10 11 12 |
# File 'lib/encoder-tools/cli/base.rb', line 10 def run # overridden in subclasses end |