module BELParser::Language::Syntax

Syntax module aggregates the generic {SyntaxFunction} implementations that apply to all {BELParser::Language::Specification BEL specifications}.

Public Class Methods

syntax_functions() click to toggle source
# File lib/bel_parser/language/syntax.rb, line 11
def self.syntax_functions
  constants.collect do |symbol|
    const = const_get(symbol)
    const if
      const.respond_to?(:include?) &&
      const.include?(SyntaxFunction)
  end.compact
end