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 - value[/^ */].size, 0].max)
  content = value.gsub(/^/, spaces)
  content.gsub!(/\n +(\* *)?/, ' ') if style == :compact
  content
end