Class: EncoderTools::CLI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/encoder-tools/cli/base.rb

Direct Known Subclasses

Subtitles::Base

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @shell, @options = shell, options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/encoder-tools/cli/base.rb', line 4

def options
  @options
end

#shellObject (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

#runObject



10
11
12
# File 'lib/encoder-tools/cli/base.rb', line 10

def run
  # overridden in subclasses
end