Method: InterMine::PathQuery::Query.is_valid_code

Defined in:
lib/intermine/query.rb

.is_valid_code(str) ⇒ Object

Whether or not the argument is a valid constraint code.

to be valid, it must be a one character string between A and Z inclusive.



900
901
902
# File 'lib/intermine/query.rb', line 900

def self.is_valid_code(str)
    return (str.length == 1) && (str >= LOWEST_CODE) && (str <= HIGHEST_CODE)
end