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.
795 796 797 798 799 800 801 802 |
# File 'lib/intermine/query.rb', line 795 def add_prefix(x) x = x.to_s if @root && !x.start_with?(@root.name) return @root.name + "." + x else return x end end |