class DParse::Parsers::String

Public Class Methods

new(string) click to toggle source
# File lib/d-parse/parsers/highlevel/string.rb, line 4
def self.new(string)
  DParse::Parsers::Seq.new(*string.chars.map { |c| DParse::Parsers::Char.new(c) })
end
new(*) click to toggle source
# File lib/d-parse/parsers/highlevel/string.rb, line 8
def initialize(*)
  raise ArgumentError, "#{self.class} is not supposed to be initialized"
end