Sha256: bf362bfc3da3fc0df8b6e6c722901e51fdc38ca973720a8986b356aec8cbd0e8

Contents?: true

Size: 494 Bytes

Versions: 40

Compression:

Stored size: 494 Bytes

Contents

module EBNF
  module VERSION
    VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "VERSION")
    MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chomp.split(".")

    STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')

    ##
    # @return [String]
    def self.to_s() STRING end

    ##
    # @return [String]
    def self.to_str() STRING end

    ##
    # @return [Array(Integer, Integer, Integer)]
    def self.to_a() [MAJOR, MINOR, TINY] end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ebnf-2.5.0 lib/ebnf/version.rb
ebnf-2.4.0 lib/ebnf/version.rb
ebnf-2.3.5 lib/ebnf/version.rb
ebnf-2.3.4 lib/ebnf/version.rb
ebnf-2.3.3 lib/ebnf/version.rb
ebnf-2.3.2 lib/ebnf/version.rb
ebnf-2.3.1 lib/ebnf/version.rb
ebnf-2.3.0 lib/ebnf/version.rb
ebnf-2.2.1 lib/ebnf/version.rb
ebnf-2.2.0 lib/ebnf/version.rb
ebnf-2.1.3 lib/ebnf/version.rb
ebnf-2.1.2 lib/ebnf/version.rb
ebnf-2.1.1 lib/ebnf/version.rb
ebnf-2.1.0 lib/ebnf/version.rb
ebnf-2.0.0 lib/ebnf/version.rb
ebnf-1.2.0 lib/ebnf/version.rb
ebnf-1.1.3 lib/ebnf/version.rb
ebnf-1.1.2 lib/ebnf/version.rb
ebnf-1.1.1 lib/ebnf/version.rb
ebnf-1.1.0 lib/ebnf/version.rb