class KPeg::Parser::MemoEntry
Attributes
ans[R]
pos[R]
uses[R]
Public Class Methods
new(ans, pos)
click to toggle source
# File lib/kpeg/parser.rb, line 58 def initialize(ans, pos) @ans = ans @pos = pos @uses = 1 end
Public Instance Methods
inc!()
click to toggle source
# File lib/kpeg/parser.rb, line 66 def inc! @uses += 1 end
move!(ans, pos)
click to toggle source
# File lib/kpeg/parser.rb, line 70 def move!(ans, pos) @ans = ans @pos = pos end