Class: Duxml::ChangeAttrClass
- Inherits:
-
ChangeClass
- Object
- PatternClass
- ChangeClass
- Duxml::ChangeAttrClass
- Includes:
- ChangeAttr
- Defined in:
- lib/duxml/meta/history/change_attr.rb
Overview
created when Element has an attribute already and its value has been changed
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
-
#old_value ⇒ Object
readonly
Returns the value of attribute old_value.
Attributes inherited from ChangeClass
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _attr_name, _old_value) ⇒ ChangeAttrClass
constructor
A new instance of ChangeAttrClass.
Methods included from ChangeAttr
Methods included from Change
#<=>, #abstract?, #description, #line
Methods included from Pattern
#<=>, #abstract?, #concrete?, #description, #name, #object, #relationship, #simple_name, #xml
Methods included from Duxml
Methods included from Saxer
Constructor Details
#initialize(_subject, _attr_name, _old_value) ⇒ ChangeAttrClass
Returns a new instance of ChangeAttrClass.
15 16 17 18 |
# File 'lib/duxml/meta/history/change_attr.rb', line 15 def initialize(_subject, _attr_name, _old_value) super _subject @attr_name, @old_value = _attr_name, _old_value end |
Instance Attribute Details
#attr_name ⇒ Object (readonly)
Returns the value of attribute attr_name.
20 21 22 |
# File 'lib/duxml/meta/history/change_attr.rb', line 20 def attr_name @attr_name end |
#old_value ⇒ Object (readonly)
Returns the value of attribute old_value.
20 21 22 |
# File 'lib/duxml/meta/history/change_attr.rb', line 20 def old_value @old_value end |