Sha256: 215105c63316872057b4025a1fa3141c55acad9f3c429eb988007c733eca41f8

Contents?: true

Size: 614 Bytes

Versions: 5207

Compression:

Stored size: 614 Bytes

Contents

module RSpec
  module Core
    # @private
    class OutputWrapper
      # @private
      attr_accessor :output

      # @private
      def initialize(output)
        @output = output
      end

      def respond_to?(name, priv=false)
        output.respond_to?(name, priv)
      end

      def method_missing(name, *args, &block)
        output.send(name, *args, &block)
      end

      # Redirect calls for IO interface methods
      IO.instance_methods(false).each do |method|
        define_method(method) do |*args, &block|
          output.send(method, *args, &block)
        end
      end
    end
  end
end

Version data entries

5,207 entries across 5,137 versions & 95 rubygems

Version Path
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
tdiary-5.0.5 vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/rspec-core-3.6.0/lib/rspec/core/output_wrapper.rb
rspec-core-3.6.0 lib/rspec/core/output_wrapper.rb