Method: Sass::CSS#initialize

Defined in:
lib/sass/css.rb

#initialize(template, options = {}) ⇒ CSS

Creates a new instance of Sass::CSS that will compile the given document to a Sass string when render is called.



108
109
110
111
112
113
114
115
# File 'lib/sass/css.rb', line 108

def initialize(template, options = {})
  if template.is_a? IO
    template = template.read
  end

  @options = options
  @template = StringScanner.new(template)
end