vendor/plugins/haml/lib/sass/tree/debug_node.rb in radiant-0.9.1 vs vendor/plugins/haml/lib/sass/tree/debug_node.rb in radiant-1.0.0.rc1

- old
+ new

@@ -10,19 +10,25 @@ super() end protected + # @see Node#to_src + def to_src(tabs, opts, fmt) + "#{' ' * tabs}@debug #{@expr.to_sass(opts)}#{semi fmt}\n" + end + # Prints the expression to STDERR. # # @param environment [Sass::Environment] The lexical environment containing # variable and mixin values 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}" + $stderr.puts "#{filename}:#{line} DEBUG: #{res}" else - STDERR.puts "Line #{line} DEBUG: #{res}" + $stderr.puts "Line #{line} DEBUG: #{res}" end [] end end end