Module: TDParser::BufferUtils
Instance Method Summary collapse
Instance Method Details
#prepare(buff) ⇒ Object
83 84 85 86 87 |
# File 'lib/tdp.rb', line 83 def prepare(buff) b = TokenBuffer.new() b.map = buff.map b end |
#recover(buff, ts) ⇒ Object
89 90 91 |
# File 'lib/tdp.rb', line 89 def recover(buff, ts) buff.each{|b| ts.unshift(b)} end |