Method: InterMine::PathQuery::Query#next_code
- Defined in:
- lib/intermine/query.rb
#next_code ⇒ Object
Get the next available code for the query.
764 765 766 767 768 769 770 771 |
# File 'lib/intermine/query.rb', line 764 def next_code c = LOWEST_CODE while Query.is_valid_code(c) return c unless used_codes.include?(c) c = c.next end raise RuntimeError, "Maximum number of codes reached - all 26 have been allocated" end |