Class: Duxml::AttrNamePatternClass
- Inherits:
-
PatternClass
- Object
- PatternClass
- Duxml::AttrNamePatternClass
- 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
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _attr_name) ⇒ AttrNamePatternClass
constructor
A new instance of AttrNamePatternClass.
Methods included from AttrNamePattern
#abstract?, #description, #relationship
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, _attr_name) ⇒ AttrNamePatternClass
Returns a new instance of AttrNamePatternClass.
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_name ⇒ Object (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 |