Class: HtmlSurgeon::Changes::RemoveAttribute

Inherits:
HtmlSurgeon::Change show all
Defined in:
lib/html_surgeon/changes/remove_attribute.rb

Defined Under Namespace

Modules: ChangeSetMethods

Constant Summary collapse

AUDIT_TYPE =
:remove_attribute

Instance Attribute Summary collapse

Attributes inherited from HtmlSurgeon::Change

#change_set

Instance Method Summary collapse

Methods inherited from HtmlSurgeon::Change

#apply, #auditor_class, inherited

Constructor Details

#initialize(attribute:, **other) ⇒ RemoveAttribute

Returns a new instance of RemoveAttribute.



8
9
10
11
12
# File 'lib/html_surgeon/changes/remove_attribute.rb', line 8

def initialize(attribute:, **other)
  @attribute = attribute

  super **other
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



6
7
8
# File 'lib/html_surgeon/changes/remove_attribute.rb', line 6

def attribute
  @attribute
end

Instance Method Details

#logObject



14
15
16
# File 'lib/html_surgeon/changes/remove_attribute.rb', line 14

def log
  "remove attribute #{attribute}"
end