Class: ERBLint::Linters::StartTagHelper::StartTag

Inherits:
Object
  • Object
show all
Defined in:
lib/erb_lint/linters/deprecated_classes.rb

Overview

Represents and provides an interface for a start tag found in the HTML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, attributes) ⇒ StartTag

Returns a new instance of StartTag.



109
110
111
112
# File 'lib/erb_lint/linters/deprecated_classes.rb', line 109

def initialize(tag_name, attributes)
  @tag_name = tag_name
  @attributes = attributes
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



107
108
109
# File 'lib/erb_lint/linters/deprecated_classes.rb', line 107

def attributes
  @attributes
end

#tag_nameObject

Returns the value of attribute tag_name.



107
108
109
# File 'lib/erb_lint/linters/deprecated_classes.rb', line 107

def tag_name
  @tag_name
end