vendor/gems/haml-2.2.2/lib/sass/tree/comment_node.rb
def to_s(tabs = 0, _ = nil)
      return if invisible?
      spaces = '  ' * (tabs - 1)

      content = (value.split("\n") + lines.map {|l| l.text})
      return spaces + "/* */" if content.empty?
      content.map! {|l| (l.empty? ? "" : " ") + l}
      content.first.gsub!(/^ /, '')
      content.last.gsub!(%r{ ?\*/ *$}, '')

      spaces + "/* " + content.join(style == :compact ? '' : "\n#{spaces} *") + " */"
    end
# 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?
Computes the CSS for the comment.
Returns `nil` if this is a silent comment
or the current style doesn't render comments.
Computes the CSS for the comment . Returns ` nil ` if this is a silent comment or the current style doesn ' t render comments .
def to_s(tabs = 0, _ = nil)
      return if invisible?
      spaces = '  ' * (tabs - 1)
      content = (value.split("\n") + lines.map {|l| l.text})
      return spaces + "/* */" if content.empty?
      content.map! {|l| (l.empty? ? "" : " ") + l}
      content.first.gsub!(/^ /, '')
      content.last.gsub!(%r{ ?\*/ *$}, '')
      spaces + "/* " + content.join(style == :compact ? '' : "\n#{spaces} *") + " */"
    end
def to_s ( tabs = 0 , _ = nil ) return if invisible? spaces = '  ' * ( tabs - 1 ) content = ( value . split ( "\n" ) + lines . map { | l | l . text } ) return spaces + "/* */" if content . empty? content . map! { | l | ( l . empty? ? "" : " " ) + l } content . first . gsub! ( / ^  / , '' ) content . last . gsub! ( %r{  ? \* / *$ } , '' ) spaces + "/* " + content . join ( style == :compact ? '' : "\n#{spaces} *" ) + " */" end
Computes the CSS for the comment.
Computes the CSS for the comment .
The resulting CSS
The resulting CSS
String, nil
tabs
The level of indentation for the CSS
The level of indentation for the CSS
_
overload
None
see
None