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
mux_ruby-3.20.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
mux_ruby-3.19.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
moneykit-0.1.15 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
moneykit-0.1.14 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
mux_ruby-3.18.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
moneykit-0.1.13 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
moneykit-0.1.12 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
moneykit-0.1.11 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
mux_ruby-3.17.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.10.1/lib/rspec/core/output_wrapper.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.10.1/lib/rspec/core/output_wrapper.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.10.1/lib/rspec/core/output_wrapper.rb
moneykit-0.1.10 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
moneykit-0.1.9 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
mux_ruby-3.15.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
mux_ruby-3.14.0 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb
moneykit-0.1.6 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb
cybrid_api_id_ruby-0.113.118 vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/output_wrapper.rb