##// END OF EJS Templates
Adds missing strings (#699)....
Adds missing strings (#699). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2455 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2376:f70be197e0ae
r2394:571494a028fc
Show More
extras.rb
11 lines | 198 B | text/x-ruby | RubyLexer
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