Class: OctoMerge::CLI::Parser
- Inherits:
-
Object
- Object
- OctoMerge::CLI::Parser
- Defined in:
- lib/octo_merge/cli/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Parser
constructor
A new instance of Parser.
- #parse! ⇒ Object
Constructor Details
#initialize(args) ⇒ Parser
Returns a new instance of Parser.
10 11 12 |
# File 'lib/octo_merge/cli/parser.rb', line 10 def initialize(args) @args = args end |
Class Method Details
.parse(args) ⇒ Object
6 7 8 |
# File 'lib/octo_merge/cli/parser.rb', line 6 def self.parse(args) new(args).parse! end |
Instance Method Details
#parse! ⇒ Object
14 15 16 17 18 |
# File 'lib/octo_merge/cli/parser.rb', line 14 def parse! setup opts.parse!(args) end |