class DParse::Parsers::Opt

Public Class Methods

new(parser) click to toggle source
# File lib/d-parse/parsers/highlevel/opt.rb, line 4
def self.new(parser)
  DParse::Parsers::Alt.new(
    parser,
    DParse::Parsers::Succeed.new,
  )
end
new(*) click to toggle source
# File lib/d-parse/parsers/highlevel/opt.rb, line 11
def initialize(*)
  raise ArgumentError, "#{self.class} is not supposed to be initialized"
end