class ParserCombinator::Items

Public Instance Methods

head() click to toggle source
# File lib/parser_combinator.rb, line 44
def head
  self.first
end
inspect() click to toggle source
# File lib/parser_combinator.rb, line 56
def inspect
  "Items [#{self.map(&:inspect).join(",\n")}]"
end
rest() click to toggle source
# File lib/parser_combinator.rb, line 48
def rest
  self.drop(1)
end
to_s() click to toggle source
# File lib/parser_combinator.rb, line 52
def to_s
  self.map(&:to_s).join
end