module BELParser::Script::Keyword

Constants

BEL_VERSION_REGEX
BEL_VERSION_STRING
CITATION
CITATION_REGEX
IMPLICIT_ANNOTATIONS
SUPPORT
SUPPORT_REGEX

Public Instance Methods

is_bel_version?(string) click to toggle source
# File lib/bel_parser/script/keywords.rb, line 15
def is_bel_version?(string)
  string =~ BEL_VERSION_REGEX
end
is_citation?(string) click to toggle source
# File lib/bel_parser/script/keywords.rb, line 19
def is_citation?(string)
  string =~ CITATION_REGEX
end
is_implicit_annotation?(string) click to toggle source
# File lib/bel_parser/script/keywords.rb, line 27
def is_implicit_annotation?(string)
  IMPLICIT_ANNOTATIONS.any? { |annotation| string == annotation }
end
is_support?(string) click to toggle source
# File lib/bel_parser/script/keywords.rb, line 23
def is_support?(string)
  string =~ SUPPORT_REGEX
end