Sha256: 9a2655061581482910c869101ec546652e50d6cfd3f2fb50b75d8f98a792073f

Contents?: true

Size: 147 Bytes

Versions: 2

Compression:

Stored size: 147 Bytes

Contents

class String
  # Compares strings ignoring case
  #   "test".cmpi("tesT")
  #   #=> true
  def cmpi(other)
    self.casecmp(other).zero?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shenanigans-1.0.13 lib/shenanigans/string/cmpi.rb
shenanigans-1.0.11 lib/shenanigans/string/cmpi.rb