Sha256: 449c15bce28ed00bb47bb631c2401f12d08079eccec20df87203cdc0a7805d6f

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

module BELParser
  module Script
    module Keyword
      BEL_VERSION_STRING = 'BELVersion'.freeze
      BEL_VERSION_REGEX  = /\A#{BEL_VERSION_STRING}\Z/i

      CITATION       = 'Citation'.freeze
      CITATION_REGEX = /\A#{CITATION}\Z/i

      SUPPORT       = 'Support'.freeze
      SUPPORT_REGEX = /\A#{SUPPORT}\Z/i

      def is_bel_version?(string)
        string =~ BEL_VERSION_REGEX
      end

      def is_citation?(string)
        string =~ CITATION_REGEX
      end

      def is_support?(string)
        string =~ SUPPORT_REGEX
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bel_parser-1.0.0.alpha.22 lib/bel_parser/script/keywords.rb
bel_parser-1.0.0.alpha.21 lib/bel_parser/script/keywords.rb