class String

Created by IntelliJ IDEA.

@author: Roman.Chernyatchik @date: 02.06.2007

Public Instance Methods

starts_with?(str) click to toggle source
# File lib/rspec/teamcity/utils/string_ext.rb, line 21
def starts_with? str
  self[0...str.length] == str
end
substring(index) click to toggle source
# File lib/rspec/teamcity/utils/string_ext.rb, line 25
def substring index
  self[index..size - 1]
end