Sha256: 657a208a7399db992f6a7123f2123a93fa8a7d73d4ad9c25419c479bddd61bf6
Contents?: true
Size: 199 Bytes
Versions: 2
Compression:
Stored size: 199 Bytes
Contents
class String def starts_with?(prefix) pattern = Regexp.new "^#{Regexp.escape(prefix)}" ( pattern =~ self ) == MATCHED_AT_CHAR_POSITION_ZERO end MATCHED_AT_CHAR_POSITION_ZERO = 0 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tagomatic-0.0.3 | lib/monkey/string.rb |
tagomatic-0.0.2 | lib/monkey/string.rb |