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

Constant Summary

Constants included from Duxml

DITA_GRAMMAR

Constants included from Meta

Meta::FILE_EXT

Instance Attribute Summary collapse

Attributes inherited from ChangeClass

#time_stamp

Attributes included from Duxml

#doc, #file, #meta

Attributes included from Saxer

#io

Instance Method Summary collapse

Methods included from Add

#child, #description

Methods included from Change

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

Methods included from Pattern

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

Methods included from Duxml

#create, #load, #log, #relaxng, #save, #validate

Methods included from Meta

#grammar=, meta_path, xml

Methods included from Saxer

#sax

Constructor Details

#initialize(_subject, _index) ⇒ AddClass

Returns a new instance of AddClass.



12
13
14
15
# File 'lib/duxml/meta/history/add.rb', line 12

def initialize(_subject, _index)
  super _subject
  @index = _index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



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

def index
  @index
end

#subjectObject (readonly) Also known as: parent

Returns the value of attribute subject.



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

def subject
  @subject
end