Class: Imgfetcha::ArgParser

Inherits:
Object
  • Object
show all
Defined in:
lib/imgfetcha/arg_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArgParser

Returns a new instance of ArgParser.



7
8
9
# File 'lib/imgfetcha/arg_parser.rb', line 7

def initialize
  @result = {}
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



5
6
7
# File 'lib/imgfetcha/arg_parser.rb', line 5

def result
  @result
end

Instance Method Details

#runObject



11
12
13
14
# File 'lib/imgfetcha/arg_parser.rb', line 11

def run
  execute_parser
  @result
end