class OptParseGen
The main entry point for OptParseGen
.
Constants
- Option
Represents a single option.
Public Class Methods
generate(input, format)
click to toggle source
Generates 'optparse' code from the given input and format.
# File lib/optparsegen.rb, line 48 def self.generate(input, format) require "optparsegen/#{format}" parser = OptParseGen.const_get("#{format.capitalize}Parser").new(input) options = parser.parse Renderer.render(options) end