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