Class: Sass::CompileResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/compile_result.rb

Overview

The result of compiling Sass to CSS. Returned by compile and compile_string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(css, source_map, loaded_urls) ⇒ CompileResult

Returns a new instance of CompileResult.



17
18
19
20
21
# File 'lib/sass/compile_result.rb', line 17

def initialize(css, source_map, loaded_urls)
  @css = css
  @source_map = source_map
  @loaded_urls = loaded_urls
end

Instance Attribute Details

#cssString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/sass/compile_result.rb', line 9

def css
  @css
end

#loaded_urlsArray<String> (readonly)

Returns:

  • (Array<String>)


15
16
17
# File 'lib/sass/compile_result.rb', line 15

def loaded_urls
  @loaded_urls
end

#source_mapString? (readonly)

Returns:

  • (String, nil)


12
13
14
# File 'lib/sass/compile_result.rb', line 12

def source_map
  @source_map
end