Method: InterMine::PathQuery::Query#add_prefix
- Defined in:
- lib/intermine/query.rb
#add_prefix(x) ⇒ Object
Adds the root prefix to the given string.
Arguments:
x-
An object with a #to_s method
Returns the prefixed string.
910 911 912 913 914 915 916 917 |
# File 'lib/intermine/query.rb', line 910 def add_prefix(x) x = x.to_s if @root && !x.start_with?(@root.name) return @root.name + "." + x else return x end end |