Module: Compass::Version

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

Instance Attribute Summary collapse

Instance Attribute Details

#versionObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/compass/version.rb', line 11

def version
  return @version if defined?(@version)

  read_version_file
  parse_version

  if r = revision
    @version[:rev] = r
    @version[:string] << " [#{r[0...7]}]"
  end

  @version
end