# File lib/cucumber/formatter/interceptor.rb, line 7 def initialize(pipe) @pipe = pipe @buffer = [] @wrapped = true end
# File lib/cucumber/formatter/interceptor.rb, line 37 def self.unwrap!(pipe) validate_pipe pipe wrapped = nil case pipe when :stdout wrapped = $stdout $stdout = wrapped.unwrap! if $stdout.respond_to?(:unwrap!) when :stderr wrapped = $stderr $stderr = wrapped.unwrap! if $stderr.respond_to?(:unwrap!) end wrapped end
# File lib/cucumber/formatter/interceptor.rb, line 23 def method_missing(method, *args, &blk) @pipe.send(method, *args, &blk) end
# File lib/cucumber/formatter/interceptor.rb, line 27 def respond_to?(method, include_private=false) super || @pipe.respond_to?(method, include_private) end
Generated with the Darkfish Rdoc Generator 2.