Class: Duxml::ChildPatternClass
- Inherits:
-
PatternClass
- Object
- PatternClass
- Duxml::ChildPatternClass
- Includes:
- ChildPattern
- Defined in:
- lib/duxml/meta/grammar/pattern/child_pattern.rb
Overview
pattern representing relationship between an object and its child
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _child, _index) ⇒ ChildPatternClass
constructor
A new instance of ChildPatternClass.
Methods included from ChildPattern
Methods included from Pattern
#<=>, #abstract?, #concrete?, #description, #name, #object, #relationship, #simple_name, #xml
Methods included from Duxml
Methods included from Saxer
Constructor Details
#initialize(_subject, _child, _index) ⇒ ChildPatternClass
Returns a new instance of ChildPatternClass.
14 15 16 17 |
# File 'lib/duxml/meta/grammar/pattern/child_pattern.rb', line 14 def initialize(_subject, _child, _index) @child, @index = _child, _index super _subject end |
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
20 21 22 |
# File 'lib/duxml/meta/grammar/pattern/child_pattern.rb', line 20 def child @child end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
20 21 22 |
# File 'lib/duxml/meta/grammar/pattern/child_pattern.rb', line 20 def index @index end |