class Sass::Tree::CommentNode

def to_s(tabs = 0, _ = nil)

Other tags:
    See: #invisible? -

Returns:
  • (String, nil) - The resulting CSS

Parameters:
  • tabs (Fixnum) -- The level of indentation for the CSS

Overloads:
  • to_s(tabs = 0)
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