Class Sass::Tree::CommentNode
In: lib/sass/tree/comment_node.rb
Parent: Node

A static node representing a Sass comment (silent or loud).

@see Sass::Tree

Methods

==   _perform   _to_s   invisible?   new   to_sass   to_scss  

Attributes

silent  [RW]  Whether or not the comment is silent (that is, doesn‘t output to CSS).

@return [Boolean]

value  [RW]  The text of the comment, not including `/*` and `*/`.

@return [String]

Public Class methods

@param value [String] See \{value} @param silent [Boolean] See \{silent}

Public Instance methods

Compares the contents of two comments.

@param other [Object] The object to compare with @return [Boolean] Whether or not this node and the other object

  are the same

Returns `true` if this is a silent comment or the current style doesn‘t render comments.

@return [Boolean]

Protected Instance methods

Removes this node from the tree if it‘s a silent comment.

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

  variable and mixin values

@return [Tree::Node, Array<Tree::Node>] The resulting static nodes @see Sass::Tree

Computes the CSS for the comment.

Returns `nil` if this is a silent comment or the current style doesn‘t render comments.

@overload to_s(tabs = 0) @param tabs [Fixnum] The level of indentation for the CSS @return [String, nil] The resulting CSS @see invisible?

[Validate]