Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1547417eec
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.273 kB
class String # :nodoc:
def starts_with?(prefix) # :nodoc:
self[0, prefix.length] == prefix
end unless method_defined?(:starts_with?)
def ends_with?(suffix) # :nodoc:
self[-suffix.length, suffix.length] == suffix
end unless method_defined?(:ends_with?)
end
Jump to Line
Something went wrong with that request. Please try again.