Class: ROTP::Arguments

Inherits:
Object
  • Object
show all
Defined in:
lib/rotp/arguments.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename, arguments) ⇒ Arguments

Returns a new instance of Arguments.



7
8
9
10
# File 'lib/rotp/arguments.rb', line 7

def initialize(filename, arguments)
  @filename = filename
  @arguments = Array(arguments)
end

Instance Method Details

#optionsObject



12
13
14
15
# File 'lib/rotp/arguments.rb', line 12

def options
  parse
  options!
end

#to_sObject



17
18
19
# File 'lib/rotp/arguments.rb', line 17

def to_s
  parser.help + "\n"
end