Class: HtmlSurgeon::Changes::RemoveAttribute
- Inherits:
-
HtmlSurgeon::Change
- Object
- HtmlSurgeon::Change
- HtmlSurgeon::Changes::RemoveAttribute
- 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
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Attributes inherited from HtmlSurgeon::Change
Instance Method Summary collapse
-
#initialize(attribute:, **other) ⇒ RemoveAttribute
constructor
A new instance of RemoveAttribute.
- #log ⇒ Object
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
#attribute ⇒ Object (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
#log ⇒ Object
14 15 16 |
# File 'lib/html_surgeon/changes/remove_attribute.rb', line 14 def log "remove attribute #{attribute}" end |