Class: Duxml::AddClass

Inherits:
ChangeClass show all
Includes:
Add
Defined in:
lib/duxml/meta/history/add.rb

Overview

created when an doc gains a child

Instance Attribute Summary collapse

Attributes inherited from ChangeClass

#time_stamp

Attributes included from Duxml

#doc

Attributes included from Saxer

#io

Instance Method Summary collapse

Methods included from Add

#description

Methods included from Change

#<=>, #abstract?, #description, #line

Methods included from Pattern

#<=>, #abstract?, #concrete?, #description, #name, #relationship, #simple_name, #xml

Methods included from Duxml

#load, #log, #save, #validate

Methods included from Saxer

#sax

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

#childObject (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

#indexObject (readonly)

Returns the value of attribute index.



17
18
19
# File 'lib/duxml/meta/history/add.rb', line 17

def index
  @index
end

#subjectObject (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