Class: HTMLProofer::Attribute

Inherits:
Object
  • Object
show all
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

Url

Defined Under Namespace

Classes: Url

Instance Attribute Summary collapse

Instance Method Summary collapse

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_attributeObject (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