Class: Duxml::ChildPatternClass

Inherits:
PatternClass show all
Includes:
ChildPattern
Defined in:
lib/duxml/meta/grammar/pattern/child_pattern.rb

Overview

pattern representing relationship between an object and its child

Constant Summary

Constants included from Duxml

DITA_GRAMMAR

Constants included from Meta

Meta::FILE_EXT

Instance Attribute Summary collapse

Attributes inherited from PatternClass

#subject

Attributes included from Duxml

#doc, #file, #meta

Attributes included from Saxer

#io

Instance Method Summary collapse

Methods included from ChildPattern

#child, #description, #relationship

Methods included from Pattern

#<=>, #abstract?, #concrete?, #description, #name, #object, #relationship, #simple_name

Methods included from Duxml

#create, #load, #log, #relaxng, #save, #validate

Methods included from Meta

#grammar=, meta_path, xml

Methods included from Saxer

#sax

Constructor Details

#initialize(_subject, _index) ⇒ ChildPatternClass

Returns a new instance of ChildPatternClass.

Parameters:



14
15
16
17
# File 'lib/duxml/meta/grammar/pattern/child_pattern.rb', line 14

def initialize(_subject, _index)
  @index = _index
  super _subject
end

Instance Attribute Details

#indexObject (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