Method: InterMine::PathQuery::Query#next_code
- Defined in:
- lib/intermine/query.rb
#next_code ⇒ Object
Get the next available code for the query.
879 880 881 882 883 884 885 886 |
# File 'lib/intermine/query.rb', line 879 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 |