class KPeg::Dot

Public Instance Methods

==(obj) click to toggle source
# File lib/kpeg/grammar.rb, line 63
def ==(obj)
  Dot === obj ? true : false
end
inspect() click to toggle source
# File lib/kpeg/grammar.rb, line 67
def inspect
  "#<dot>"
end
match(x) click to toggle source
# File lib/kpeg/grammar.rb, line 55
def match(x)
  if str = x.get_byte
    MatchString.new(self, str)
  else
    x.fail(self)
  end
end