Sha256: ac3f986594f46705b16c233acccc4d7cd9fa2afa68cf7b47900069a29f4f55fe

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

module Polyfill
  module V2_4
    module Symbol
      module Instance
        module CasecmpQ
          module Method
            def casecmp?(other)
              return nil unless other.is_a?(::Symbol)

              casecmp(other) == 0
            end
          end

          refine ::Symbol do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_4/symbol/instance/casecmp_q.rb
polyfill-0.5.0 lib/polyfill/v2_4/symbol/instance/casecmp_q.rb
polyfill-0.4.0 lib/polyfill/v2_4/symbol/instance/casecmp_q.rb