Sha256: 152998300e237ea96cb24f07091b9b19f4fcd145363f4343c8621dcf3e5f9012

Contents?: true

Size: 226 Bytes

Versions: 91

Compression:

Stored size: 226 Bytes

Contents

module VCR
  # @private
  module VariableArgsBlockCaller
    def call_block(block, *args)
      if block.arity >= 0
        args = args.first([args.size, block.arity].min)
      end

      block.call(*args)
    end
  end
end

Version data entries

91 entries across 91 versions & 11 rubygems

Version Path
docspring-3.0.0 vendor/bundle/ruby/3.3.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.16 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
vcr-6.3.1 lib/vcr/util/variable_args_block_caller.rb
vcr-6.3.0 lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
vcr-6.2.0 lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/vcr-3.0.3/lib/vcr/util/variable_args_block_caller.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/vcr-6.1.0/lib/vcr/util/variable_args_block_caller.rb