Class: Guideline::Runner::Parser
- Inherits:
-
Object
- Object
- Guideline::Runner::Parser
- Defined in:
- lib/guideline/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(argv) ⇒ Parser
Returns a new instance of Parser.
75 76 77 |
# File 'lib/guideline/runner.rb', line 75 def initialize(argv) @argv = argv end |
Class Method Details
.parse(argv) ⇒ Object
71 72 73 |
# File 'lib/guideline/runner.rb', line 71 def self.parse(argv) new(argv).parse end |
Instance Method Details
#parse ⇒ Object
79 80 81 82 |
# File 'lib/guideline/runner.rb', line 79 def parse slop.parse(@argv) slop.to_hash end |