Method: String#start_with?

Defined in:
lib/intermine/query.rb

#start_with?(prefix) ⇒ Boolean

Returns:

  • (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