Sha256: 03e0efb774b96c0ccf01dcfea03b8aa014f3c2ad8baac0f7631b33c143e69540

Contents?: true

Size: 220 Bytes

Versions: 3

Compression:

Stored size: 220 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
rupy-0.4.2 lib/rupy/core_ext/string.rb
rupy-0.4.1 lib/rupy/core_ext/string.rb
rupy-0.4.0 ./lib/rupy/core_ext/string.rb