keep_back()
click to toggle source
def keep_back
self.pos = @keeps.pop
end
keep_drop()
click to toggle source
def keep_drop
@keeps.pop
end
keep_end()
click to toggle source
def keep_end
start = @keeps.pop
string[start, pos - start]
end
keep_start()
click to toggle source
def keep_start
@keeps.push(pos)
end