Method: Sass::CSS#initialize
- Defined in:
- lib/sass/css.rb
#initialize(template, options = {}) ⇒ CSS
Returns a new instance of CSS.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/sass/css.rb', line 28
def initialize(template, options = {})
if template.is_a? IO
template = template.read
end
@options = options.dup
# Backwards compatibility
@options[:old] = true if @options[:alternate] == false
@template = template
end
|