Class: IO

Inherits:
Object
  • Object
show all
Defined in:
lib/mongrel/debug.rb

Instance Method Summary collapse

Instance Method Details

#close(*arg, &blk) ⇒ Object



66
67
68
69
# File 'lib/mongrel/debug.rb', line 66

def close(*arg,&blk)
  $open_files.delete self
  orig_close(*arg,&blk)
end

#open(*arg, &blk) ⇒ Object



61
62
63
64
# File 'lib/mongrel/debug.rb', line 61

def open(*arg, &blk)
  $open_files[self] = args.inspect
  orig_open(*arg,&blk)
end

#orig_closeObject



59
# File 'lib/mongrel/debug.rb', line 59

alias_method :orig_close, :close

#orig_openObject



58
# File 'lib/mongrel/debug.rb', line 58

alias_method :orig_open, :open