Sha256: 30a22ac1e4bba3c6977cade6ff23a0a54ea417df0818e7ee004e5ef7b6171c46
Contents?: true
Size: 424 Bytes
Versions: 7
Compression:
Stored size: 424 Bytes
Contents
module Polyfill module V2_4 module Symbol def casecmp?(other) return nil unless other.is_a?(::Symbol) casecmp(other) == 0 end def match(*args) if block_given? to_s.match(*args, &::Proc.new) else to_s.match(*args) end end def match?(pattern, position = 0) !!(self[position..-1] =~ pattern) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems