Class: Sass::Tree::WarnNode

Inherits:
Node
  • Object
show all
Defined in:
lib/sass/tree/warn_node.rb

Overview

A dynamic node representing a Sass @warn statement.

See Also:

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #filename, #has_children, #line, #options, #source_range

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #balance, #bubbles?, #css, #css_with_sourcemap, #deep_copy, #each, #inspect, #invisible?, #style, #to_sass, #to_scss

Constructor Details

#initialize(expr) ⇒ WarnNode

Returns a new instance of WarnNode.

Parameters:



12
13
14
15
# File 'lib/sass/tree/warn_node.rb', line 12

def initialize(expr)
  @expr = expr
  super()
end

Instance Attribute Details

#exprScript::Tree::Node

The expression to print.

Returns:



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

def expr
  @expr
end