Class: Duxml::AddClass
- Inherits:
-
ChangeClass
- Object
- PatternClass
- ChangeClass
- Duxml::AddClass
- Includes:
- Add
- Defined in:
- lib/duxml/meta/history/add.rb
Overview
created when an doc gains a child
Instance Attribute Summary collapse
-
#child ⇒ Object
(also: #object)
readonly
Returns the value of attribute child.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#subject ⇒ Object
(also: #parent)
readonly
Returns the value of attribute subject.
Attributes inherited from ChangeClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _child, _index) ⇒ AddClass
constructor
A new instance of AddClass.
Methods included from Add
Methods included from Change
#<=>, #abstract?, #description, #line
Methods included from Pattern
#<=>, #abstract?, #concrete?, #description, #name, #relationship, #simple_name, #xml
Methods included from Duxml
Methods included from Saxer
Constructor Details
#initialize(_subject, _child, _index) ⇒ AddClass
Returns a new instance of AddClass.
12 13 14 15 |
# File 'lib/duxml/meta/history/add.rb', line 12 def initialize(_subject, _child, _index) super _subject @child, @index = _child, _index end |
Instance Attribute Details
#child ⇒ Object (readonly) Also known as: object
Returns the value of attribute child.
17 18 19 |
# File 'lib/duxml/meta/history/add.rb', line 17 def child @child end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
17 18 19 |
# File 'lib/duxml/meta/history/add.rb', line 17 def index @index end |
#subject ⇒ Object (readonly) Also known as: parent
Returns the value of attribute subject.
17 18 19 |
# File 'lib/duxml/meta/history/add.rb', line 17 def subject @subject end |