Class Sass::Tree::ImportNode
In: lib/sass/tree/import_node.rb
Parent: RootNode

A static node that wraps the {Sass::Tree} for an `@import`ed file. It doesn‘t have a functional purpose other than to add the `@import`ed file to the backtrace if an error occurs.

Methods

Attributes

imported_filename  [R]  The name of the imported file as it appears in the Sass document.

@return [String]

Public Class methods

@param imported_filename [String] The name of the imported file

Public Instance methods

Returns whether or not this import should emit a CSS @import declaration

@return [Boolean] Whether or not this is a simple CSS @import declaration.

Returns the imported file.

@return [Sass::Engine] @raise [Sass::SyntaxError] If no file could be found to import.

[Validate]