class Sass::Tree::DebugNode

@see Sass::Tree
A dynamic node representing a Sass ‘@debug` statement.

def _perform(environment)

Parameters:
  • environment (Sass::Environment) -- The lexical environment containing
def _perform(environment)
  res = @expr.perform(environment)
  res = res.value if res.is_a?(Sass::Script::String)
  if filename
    $stderr.puts "#{filename}:#{line} DEBUG: #{res}"
  else
    $stderr.puts "Line #{line} DEBUG: #{res}"
  end
  []
end

def initialize(expr)

Parameters:
  • expr (Script::Node) -- The expression to print
def initialize(expr)
  @expr = expr
  super()
end

def to_src(tabs, opts, fmt)

Other tags:
    See: Node#to_src -
def to_src(tabs, opts, fmt)
  "#{'  ' * tabs}@debug #{@expr.to_sass(opts)}#{semi fmt}\n"
end