Class: HTMLProofer::Attribute
- Inherits:
-
Object
- Object
- HTMLProofer::Attribute
- Includes:
- Utils
- Defined in:
- lib/html_proofer/attribute.rb,
lib/html_proofer/attribute/url.rb
Overview
Represents an element currently being processed
Direct Known Subclasses
Defined Under Namespace
Classes: Url
Instance Attribute Summary collapse
-
#raw_attribute ⇒ Object
readonly
Returns the value of attribute raw_attribute.
Instance Method Summary collapse
-
#initialize(runner, raw_attribute, **_) ⇒ Attribute
constructor
A new instance of Attribute.
Methods included from Utils
#blank?, #create_nokogiri, #pluralize
Constructor Details
#initialize(runner, raw_attribute, **_) ⇒ Attribute
Returns a new instance of Attribute.
10 11 12 13 |
# File 'lib/html_proofer/attribute.rb', line 10 def initialize(runner, raw_attribute, **_) @runner = runner @raw_attribute = raw_attribute end |
Instance Attribute Details
#raw_attribute ⇒ Object (readonly)
Returns the value of attribute raw_attribute.
8 9 10 |
# File 'lib/html_proofer/attribute.rb', line 8 def raw_attribute @raw_attribute end |