Sha256: 631dbd3e96dafa585eab561fe6a1dfb68c34bb6b36691cef62e879ba81b9816e

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

#--
# Copyright (c) 2008 Jeremy Hinegardner
# All rights reserved.  Licensed under the same terms as Ruby.  No warranty is
# provided.  See LICENSE and COPYING for details.
#++

module Stickler

  # Version access in every possibly way that people might want to get it.
  #
  module Version

    MAJOR = 2
    MINOR = 2
    BUILD = 3

    def self.to_ary
      [ MAJOR, MINOR, BUILD ]
    end

    def self.to_s
      self.to_ary.join(".")
    end

    def self.to_hash
      { :major => MAJOR, :minor => MINOR, :build => BUILD }
    end

    # Version string constant
    STRING = Version.to_s
    
  end

  # Version string constant
  VERSION = Version.to_s
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stickler-2.2.3 lib/stickler/version.rb