Class: Sass::Tree::FileNode

Inherits:
Node show all
Defined in:
lib/sass/tree/file_node.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #filename, #line

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #last, #perform, #to_sass

Constructor Details

#initialize(filename, children, options) ⇒ FileNode

Returns a new instance of FileNode.



4
5
6
7
8
# File 'lib/sass/tree/file_node.rb', line 4

def initialize(filename, children, options)
  @filename = filename
  super(options)
  self.children = children
end

Instance Method Details

#to_s(*args) ⇒ Object



10
11
12
13
14
15
# File 'lib/sass/tree/file_node.rb', line 10

def to_s(*args)
  super()
rescue Sass::SyntaxError => e
  e.add_backtrace_entry(@filename)
  raise e
end