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