Class: ERBLint::Linters::StartTagHelper::StartTag
- Inherits:
-
Object
- Object
- ERBLint::Linters::StartTagHelper::StartTag
- 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
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
Instance Method Summary collapse
-
#initialize(tag_name, attributes) ⇒ StartTag
constructor
A new instance of StartTag.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
107 108 109 |
# File 'lib/erb_lint/linters/deprecated_classes.rb', line 107 def attributes @attributes end |
#tag_name ⇒ Object
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 |