Sha256: 42f92ed759be80c9e5617b526763e6220b44df7825f73b28bc8d94c0c051e926

Contents?: true

Size: 389 Bytes

Versions: 160

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

160 entries across 154 versions & 21 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.31.3/lib/rubocop/ast/ext/range_min_max.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.23.0/lib/rubocop/ast/ext/range_min_max.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.23.0/lib/rubocop/ast/ext/range_min_max.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.23.0/lib/rubocop/ast/ext/range_min_max.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.31.3/lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.31.3 lib/rubocop/ast/ext/range_min_max.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
bison-0.1.0 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.31.2/lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.31.2 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.31.1 lib/rubocop/ast/ext/range_min_max.rb
rubocop-ast-1.31.0 lib/rubocop/ast/ext/range_min_max.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.7 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.6 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.5 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.4 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.3 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.1 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb
study_line-0.2.0 vendor/bundle/ruby/3.2.0/gems/rubocop-ast-1.30.0/lib/rubocop/ast/ext/range_min_max.rb