class File

Public Class Methods

new(*args) click to toggle source
# File lib/logmerge.rb, line 21
def initialize (*args)
  @buf=[]
  old_initialize(*args)
end
Also aliased as: old_initialize

Public Instance Methods

buf() click to toggle source
# File lib/logmerge.rb, line 32
def buf
  @buf
end
old_initialize(*args)
Alias for: new
old_readline(*args)
Alias for: readline
readline(*args) click to toggle source
# File lib/logmerge.rb, line 28
def readline (*args)
  @buf.empty? ? old_readline(*args) : @buf.pop
end
Also aliased as: old_readline
unreadline(str) click to toggle source
# File lib/logmerge.rb, line 25
def unreadline (str)
  @buf.push(str)
end