Class: Duxml::AttrValPatternClass
- Inherits:
-
PatternClass
- Object
- PatternClass
- Duxml::AttrValPatternClass
- Includes:
- AttrValPattern
- Defined in:
- lib/duxml/meta/grammar/pattern/attr_val_pattern.rb
Overview
pattern representing relationship between an object’s attribute and its value
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _attr_name) ⇒ AttrValPatternClass
constructor
A new instance of AttrValPatternClass.
Methods included from AttrValPattern
#description, #relationship, #value
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) ⇒ AttrValPatternClass
Returns a new instance of AttrValPatternClass.
14 15 16 17 |
# File 'lib/duxml/meta/grammar/pattern/attr_val_pattern.rb', line 14 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.
19 20 21 |
# File 'lib/duxml/meta/grammar/pattern/attr_val_pattern.rb', line 19 def attr_name @attr_name end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
19 20 21 |
# File 'lib/duxml/meta/grammar/pattern/attr_val_pattern.rb', line 19 def subject @subject end |