Sha256: fd5aa042d768f027f37e9e556c624980ab348b06369542dada1e89e43786523a
Contents?: true
Size: 209 Bytes
Versions: 3
Compression:
Stored size: 209 Bytes
Contents
class String #This is necessary for Ruby versions 1.8.6 and below as #String#end_with? is not defined in this case. def end_with?(c) self[-1].chr == c end end unless String.respond_to? :end_with?
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubypython-0.3.2 | lib/rubypython/core_ext/string.rb |
rubypython-0.3.1 | lib/rubypython/core_ext/string.rb |
rubypython-0.3.0 | lib/rubypython/core_ext/string.rb |