Parent

Class Index [+]

Quicksearch

PhusionPassenger::Utils::PseudoIO

Public Class Methods

new(sink) click to toggle source
     # File lib/phusion_passenger/utils.rb, line 274
274:                 def initialize(sink)
275:                         @sink = sink || File.open("/dev/null", "w")
276:                         @buffer = StringIO.new
277:                 end

Public Instance Methods

done!() click to toggle source
     # File lib/phusion_passenger/utils.rb, line 279
279:                 def done!
280:                         result = @buffer.string
281:                         @buffer = nil
282:                         return result
283:                 end
method_missing(*args, &block) click to toggle source
     # File lib/phusion_passenger/utils.rb, line 285
285:                 def method_missing(*args, &block)
286:                         @buffer.send(*args, &block) if @buffer && args.first != :reopen
287:                         return @sink.send(*args, &block)
288:                 end
respond_to?(symbol, include_private = false) click to toggle source
     # File lib/phusion_passenger/utils.rb, line 290
290:                 def respond_to?(symbol, include_private = false)
291:                         return @sink.respond_to?(symbol, include_private)
292:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.