Class: Belafonte::ArgumentProcessor
- Inherits:
-
Object
- Object
- Belafonte::ArgumentProcessor
- Includes:
- Optionally::Required
- Defined in:
- lib/belafonte/argument_processor.rb
Overview
Processes command line arguments
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ArgumentProcessor
constructor
A new instance of ArgumentProcessor.
- #processed ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ArgumentProcessor
Returns a new instance of ArgumentProcessor.
9 10 11 12 13 14 15 |
# File 'lib/belafonte/argument_processor.rb', line 9 def initialize( = {}) (, :argv, :arguments) @argv = [:argv] @arguments = [:arguments] process end |
Instance Method Details
#processed ⇒ Object
17 18 19 |
# File 'lib/belafonte/argument_processor.rb', line 17 def processed @processed ||= {} end |