lib/haml_lint/tree/haml_comment_node.rb
# Returns the full text content of this comment, including newlines if a
# single comment spans multiple lines.
#
# @return [String]
Returns the full text content of this comment, including newlines if a
single comment spans multiple lines.
Returns the full text content of this comment including newlines if a single comment spans multiple lines .
def text
      content = source_code
      indent = content[/^ */]
      content.gsub(/^#{indent}/, '')
             .gsub(/^-#/, '')
             .gsub(/^  /, '')
             .rstrip
    end
def text content = source_code indent = content [ / ^ * / ] content . gsub ( / ^ #{ indent } / , '' ) . gsub ( / ^-# / , '' ) . gsub ( / ^   / , '' ) . rstrip end
Returns the full text content of this comment, including newlines if a
single comment spans multiple lines.
Returns the full text content of this comment including newlines if a single comment spans multiple lines .
None
String