Class: Imgfetcha::ArgParser
- Inherits:
-
Object
- Object
- Imgfetcha::ArgParser
- Defined in:
- lib/imgfetcha/arg_parser.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize ⇒ ArgParser
constructor
A new instance of ArgParser.
- #run ⇒ Object
Constructor Details
#initialize ⇒ ArgParser
Returns a new instance of ArgParser.
7 8 9 |
# File 'lib/imgfetcha/arg_parser.rb', line 7 def initialize @result = {} end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
5 6 7 |
# File 'lib/imgfetcha/arg_parser.rb', line 5 def result @result end |
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/imgfetcha/arg_parser.rb', line 11 def run execute_parser @result end |