Module: Compass::Version

Included in:
Compass
Defined in:
lib/compass/version.rb

Constant Summary collapse

VERSION_DETAILS =
{
  :major => 0,
  :minor => 12,
  :build => 7,
  :name => "Alnilam"
}

Instance Method Summary collapse

Instance Method Details

#versionObject

Returns a hash representing the version. The :major, :minor, and :teeny keys have their respective numbers. The :string key contains a human-readable string representation of the version. The :rev key will have the current revision hash.

This method swiped from Haml and then modified, some credit goes to Nathan Weizenbaum



16
17
18
19
20
21
22
# File 'lib/compass/version.rb', line 16

def version
  if defined?(@version)
    @version
  else
    read_version
  end
end