Class: Transat::BaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/transat/parser.rb

Direct Known Subclasses

HelpCommand, VersionCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(non_options, options) ⇒ BaseCommand

Returns a new instance of BaseCommand.



65
66
67
# File 'lib/transat/parser.rb', line 65

def initialize(non_options, options)
  @non_options, @options = non_options, options
end

Instance Attribute Details

#non_optionsObject (readonly)

Returns the value of attribute non_options.



64
65
66
# File 'lib/transat/parser.rb', line 64

def non_options
  @non_options
end

#optionsObject (readonly)

Returns the value of attribute options.



64
65
66
# File 'lib/transat/parser.rb', line 64

def options
  @options
end