Sha256: 42f92ed759be80c9e5617b526763e6220b44df7825f73b28bc8d94c0c051e926

Contents?: true

Size: 389 Bytes

Versions: 161

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module AST
    module Ext
      # Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
      module RangeMinMax
        if ::Range.instance_method(:minmax).owner != ::Range
          refine ::Range do
            def minmax
              [min, max]
            end
          end
        end
      end
    end
  end
end

Version data entries

161 entries across 155 versions & 22 rubygems

Version Path
call_your_name-0.1.0 vendor/bundle/ruby/3.1.0/gems/rubocop-ast-1.28.0/lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.28.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.27.0 lib/rubocop/ast/ext/range_min_max.rb
zilla-0.2.0 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.26.0/lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.26.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.25.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.24.1 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.24.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.23.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.22.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.21.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.20.1 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.20.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.19.1 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.19.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.18.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.17.0 lib/rubocop/ast/ext/range_min_max.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/rubocop-ast-1.16.0/lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.16.0 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.15.2 lib/rubocop/ast/ext/range_min_max.rb