Class: Duxml::AttrNamePatternClass

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

Overview

pattern representing relationship between an object and one of its attributes

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 AttrNamePattern

#abstract?, #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, _attr_name) ⇒ AttrNamePatternClass

Returns a new instance of AttrNamePatternClass.

Parameters:



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

def initialize(_subject, _attr_name)
  @attr_name = _attr_name
  super _subject
end

Instance Attribute Details

#attr_nameObject (readonly)

Returns the value of attribute attr_name.



18
19
20
# File 'lib/duxml/meta/grammar/pattern/attr_name_pattern.rb', line 18

def attr_name
  @attr_name
end