Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9d2ee88440
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.198 kb
class String
def starts_with?(other)
head = self[0, other.length]
head == other
end
def ends_with?(other)
tail = self[-1 * other.length, other.length]
tail == other
end
end
Jump to Line
Something went wrong with that request. Please try again.