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

Methods

new   to_s  

Public Class methods

[Source]

   # File lib/sass/tree/comment_node.rb, line 5
5:     def initialize(value, style)
6:       super(value[2..-1].strip, style)
7:     end

Public Instance methods

[Source]

    # File lib/sass/tree/comment_node.rb, line 9
 9:     def to_s(parent_name = nil)
10:       join_string = @style == :compact ? ' ' : "\n * "
11:       "/* #{value}#{join_string unless children.empty?}#{children.join join_string} */"
12:     end

[Validate]