Sha256: 509f6ad954c29162df6e9de51c9b525c1a0a5e94058cd059ecbf3afb60ff8788

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

#--
# Copyright (c) 2008 Jeremy Hinegardner
# All rights reserved.  See LICENSE and/or COPYING for licensingn details
#++

module Amalgalite
  # Version information for Amagalite
  module Version

    MAJOR   = 1
    MINOR   = 1
    BUILD   = 2

    #
    # return the Version as an array of MAJOR, MINOR, BUILD
    #
    def self.to_a 
      [MAJOR, MINOR, BUILD]
    end

    # return the Version as a dotted String MAJOR.MINOR.BUILD
    def self.to_s
      to_a.join(".")
    end

    # return the Vesion as a hash 
    def self.to_hash
      { :major => MAJOR, :minor => MINOR, :build => BUILD }
    end

    # Version string constant
    STRING = Version.to_s.freeze
  end

  # Version string constant
  VERSION = Version.to_s.freeze
end 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amalgalite-1.1.2-x86-mingw32 lib/amalgalite/version.rb
amalgalite-1.1.2-x86-mswin32 lib/amalgalite/version.rb
amalgalite-1.1.2 lib/amalgalite/version.rb