class RD::ElementRelationship
ElementRelationship
is knowledge about parent-children relationship between Elements.
Attributes
child[R]
parent[R]
Public Class Methods
new(parent, child)
click to toggle source
# File lib/rd/document-struct.rb, line 37 def initialize(parent, child) @parent = parent @child = child end
Public Instance Methods
match?(parent, child)
click to toggle source
# File lib/rd/document-struct.rb, line 42 def match?(parent, child) parent.is_a? @parent and child.is_a? @child end