Sha256: 3f4d57d7d6c204d824020fcd9df4bb60b0543b8a521f9fc35aba73d71653dd83
Contents?: true
Size: 330 Bytes
Versions: 57
Compression:
Stored size: 330 Bytes
Contents
#-- # Credit goes to Lucas Carlson and Blaine Cook. #++ class String def starts_with?(str) self.index( str ) == 0 end def ends_with?(str) self.rindex( str ) == self.length - str.length end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # TODO
Version data entries
57 entries across 57 versions & 3 rubygems