Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/intermine/query.rb
Instance Method Summary collapse
Instance Method Details
#end_with?(suffix) ⇒ Boolean
20 21 22 23 |
# File 'lib/intermine/query.rb', line 20 def end_with?(suffix) suffix = Regexp.escape(suffix.to_s) return self.match("#{suffix}$") end |
#start_with?(prefix) ⇒ Boolean
15 16 17 18 |
# File 'lib/intermine/query.rb', line 15 def start_with?(prefix) prefix = Regexp.escape(prefix.to_s) return self.match("^#{prefix}") end |