module Compass

Public Class Methods

base_directory() click to toggle source
# File lib/compass.rb, line 11
def base_directory
  File.expand_path(File.join(File.dirname(__FILE__), '..'))
end
const_missing(const) click to toggle source
# File lib/compass/version.rb, line 52
def self.const_missing(const)
  # This avoid reading from disk unless the VERSION is requested.
  if const == :VERSION
    version[:string]
  else
    super
  end
end
lib_directory() click to toggle source
# File lib/compass.rb, line 14
def lib_directory
  File.expand_path(File.join(File.dirname(__FILE__)))
end
shared_extension_paths() click to toggle source
# File lib/compass.rb, line 17
def shared_extension_paths
  @shared_extension_paths ||= begin
    if ENV["HOME"] && File.directory?(ENV["HOME"])
      [File.join(ENV["HOME"], ".compass", "extensions")]
    else
      []
    end
  rescue ArgumentError # If HOME is relative
    []
  end
end