Sha256: 1a3d47834662b6f3cde0729ca30223c22cf7e201e0d6ef85aacb9471335d2777

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

# version.rb contains <tt>Twitter::Version</tt> that provides helper
# methods related to versioning of the <tt>Twitter4R</tt> project.

module Twitter::Version #:nodoc:
  MAJOR = 0
  MINOR = 2
  REVISION = 1
  class << self
    # Returns X.Y.Z formatted version string
    def to_version
      "#{MAJOR}.#{MINOR}.#{REVISION}"
    end
    
    # Returns X-Y-Z formatted version name
    def to_name
      "#{MAJOR}_#{MINOR}_#{REVISION}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter4r-0.2.1 lib/twitter/version.rb