Sha256: 14dede7b452f3201203e05a67b5b10322bf39f275f2c1297438c0f26a29647ed
Contents?: true
Size: 151 Bytes
Versions: 4
Compression:
Stored size: 151 Bytes
Contents
class String def cobweb_ends_with?(val) suffix = val suffix.respond_to?(:to_str) && self[-suffix.length, suffix.length] == suffix end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cobweb-1.2.1 | lib/string.rb |
cobweb-1.2.0 | lib/string.rb |
cobweb-1.1.0 | lib/string.rb |
cobweb-1.0.29 | lib/string.rb |