Class Sass::Tree::DebugNode
In: lib/sass/tree/debug_node.rb
Parent: Node

A dynamic node representing a Sass `@debug` statement.

@see Sass::Tree

Methods

_perform   new  

Public Class methods

@param expr [Script::Node] The expression to print

[Source]

    # File lib/sass/tree/debug_node.rb, line 8
 8:       def initialize(expr)
 9:         @expr = expr
10:         super()
11:       end

Protected Instance methods

Prints the expression to STDERR.

@param environment [Sass::Environment] The lexical environment containing

  variable and mixin values

[Source]

    # File lib/sass/tree/debug_node.rb, line 19
19:       def _perform(environment)
20:         res = @expr.perform(environment)
21:         if filename
22:           STDERR.puts "#{filename}:#{line} DEBUG: #{res}"
23:         else
24:           STDERR.puts "Line #{line} DEBUG: #{res}"
25:         end
26:         []
27:       end

[Validate]