Module: Kernel
- Defined in:
- lib/mongrel/debug.rb
Instance Method Summary collapse
Instance Method Details
#log_open_files ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/mongrel/debug.rb', line 81 def log_open_files open_counts = {} $open_files.each do |f,args| open_counts[args] ||= 0 open_counts[args] += 1 end MongrelDbg::trace(:files, open_counts.to_yaml) end |
#open(*arg, &blk) ⇒ Object
76 77 78 79 |
# File 'lib/mongrel/debug.rb', line 76 def open(*arg, &blk) $open_files[self] = arg[0] orig_open(*arg,&blk) end |
#orig_open ⇒ Object
74 |
# File 'lib/mongrel/debug.rb', line 74 alias_method :orig_open, :open |