Class: Duxml::RemoveClass

Inherits:
ChangeClass show all
Includes:
Remove
Defined in:
lib/duxml/meta/history/remove.rb

Overview

created when doc loses a child

Instance Attribute Summary collapse

Attributes inherited from ChangeClass

#time_stamp

Attributes inherited from PatternClass

#subject

Attributes included from Duxml

#doc

Attributes included from Saxer

#io

Instance Method Summary collapse

Methods included from Remove

#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) ⇒ RemoveClass

Returns a new instance of RemoveClass.

Parameters:

  • parent doc that lost child

  • removed child; it gets added as child of this Remove object so it never actually goes away



13
14
15
16
# File 'lib/duxml/meta/history/remove.rb', line 13

def initialize(_subject, _child)
  super(_subject)
  @removed = _child
end

Instance Attribute Details

#removedObject (readonly) Also known as: object

Returns the value of attribute removed.



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

def removed
  @removed
end