Module: Duxml::Add

Included in:
AddClass
Defined in:
lib/duxml/meta/history/add.rb,
lib/duxml/meta/history/add.rb

Instance Method Summary collapse

Instance Method Details

#childObject Also known as: object



30
31
32
# File 'lib/duxml/meta/history/add.rb', line 30

def child
  subject.nodes[index]
end

#descriptionObject



22
23
24
# File 'lib/duxml/meta/history/add.rb', line 22

def description
  %(#{super} #{child.description} added to #{parent.description}.)
end

#parentObject



26
27
28
# File 'lib/duxml/meta/history/add.rb', line 26

def parent
  subject
end