Class: Pidgin2Adium::ArgumentParser

Inherits:
Object
  • Object
show all
Defined in:
lib/pidgin2adium/argument_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ ArgumentParser

Returns a new instance of ArgumentParser


3
4
5
6
# File 'lib/pidgin2adium/argument_parser.rb', line 3

def initialize(argv)
  @argv = argv
  @options = {}
end

Instance Method Details

#parseObject


8
9
10
11
# File 'lib/pidgin2adium/argument_parser.rb', line 8

def parse
  parser.parse!(@argv)
  @options
end