mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Convert Sass::Tree::DebugNode docs to YARD.
This commit is contained in:
parent
7650c44ede
commit
2116f12ba8
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,12 @@
|
||||||
module Sass
|
module Sass
|
||||||
module Tree
|
module Tree
|
||||||
|
# A dynamic node representing a Sass `@debug` statement.
|
||||||
|
#
|
||||||
|
# @see Sass::Tree
|
||||||
class DebugNode < Node
|
class DebugNode < Node
|
||||||
|
# @param expr [Script::Node] The expression to print
|
||||||
|
# @param options [Hash<Symbol, Object>] An options hash;
|
||||||
|
# see [the Sass options documentation](../../Sass.html#sass_options)
|
||||||
def initialize(expr, options)
|
def initialize(expr, options)
|
||||||
@expr = expr
|
@expr = expr
|
||||||
super(options)
|
super(options)
|
||||||
|
@ -8,6 +14,10 @@ module Sass
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
# Prints the expression to STDERR.
|
||||||
|
#
|
||||||
|
# @param environment [Sass::Environment] The lexical environment containing
|
||||||
|
# variable and mixin values
|
||||||
def _perform(environment)
|
def _perform(environment)
|
||||||
res = @expr.perform(environment)
|
res = @expr.perform(environment)
|
||||||
if filename
|
if filename
|
||||||
|
|
Loading…
Add table
Reference in a new issue