class String
Public Instance Methods
end_with?(suffix)
click to toggle source
# File lib/intermine/query.rb 20 def end_with?(suffix) 21 suffix = Regexp.escape(suffix.to_s) 22 return self.match("#{suffix}$") 23 end
start_with?(prefix)
click to toggle source
# File lib/intermine/query.rb 15 def start_with?(prefix) 16 prefix = Regexp.escape(prefix.to_s) 17 return self.match("^#{prefix}") 18 end