Module: Compass::SassExtensions::Functions::Env

Included in:
Sass::Script::Functions
Defined in:
lib/compass/sass_extensions/functions/env.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) compass_env



3
4
5
# File 'lib/compass/sass_extensions/functions/env.rb', line 3

def compass_env
  Sass::Script::String.new((options[:compass][:environment] || "development").to_s)
end

- (Object) current_output_file



19
20
21
# File 'lib/compass/sass_extensions/functions/env.rb', line 19

def current_output_file
  Sass::Script::String.new(options[:css_filename].to_s)
end

- (Object) current_source_file



15
16
17
# File 'lib/compass/sass_extensions/functions/env.rb', line 15

def current_source_file
  Sass::Script::String.new(options[:filename].to_s)
end

- (Object) current_time(format) Also known as: current_date



7
8
9
10
11
# File 'lib/compass/sass_extensions/functions/env.rb', line 7

def current_time(format)
  time = Time.now.strftime(format.to_s)

  Sass::Script::String.new(time.to_s)
end