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
genkaio-0.0.2 vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
genkaio-0.0.1 vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
spec_fill-0.1.1 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
spec_fill-0.1.0 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb
rspec-core-3.9.0 lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-3.8.0/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/output_wrapper.rb
rspec-core-3.8.2 lib/rspec/core/output_wrapper.rb
rspec-core-3.8.1 lib/rspec/core/output_wrapper.rb