Module: Compass::SassExtensions::Functions::Env
- Included in:
- Sass::Script::Functions
- Defined in:
- lib/compass/sass_extensions/functions/env.rb
Instance Method Summary (collapse)
- - (Object) compass_env
- - (Object) current_output_file
- - (Object) current_source_file
- - (Object) current_time(format) (also: #current_date)
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(([: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([: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([: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 |