lib/haml_lint/tree/tag_node.rb
# List of ids statically defined for this tag.
#
# @example For `%tag.button#start-button{ id: special_id }`, this returns:
#   ['start-button']
#
# @return [Array<String>] list of statically defined ids with leading `#`
#   removed
List of ids statically defined for this tag.
List of ids statically defined for this tag .
def static_ids
      @static_ids ||=
        begin
          static_attributes_source.scan(/#([-:\w]+)/)
        end
    end
def static_ids @static_ids ||= begin static_attributes_source . scan ( / #([-: \w ]+) / ) end end
List of ids statically defined for this tag.
List of ids statically defined for this tag .
list of statically defined ids with leading `#` removed
list of statically defined ids with leading ` # ` removed
Array<String>
example
For `%tag.button#start-button{ id: special_id }`, this returns: ['start-button']
For ` %tag . button#start - button { id : special_id } ` this returns : [ ' start - button ' ]