Class: Duxml::TextPatternClass
- Inherits:
-
PatternClass
- Object
- PatternClass
- Duxml::TextPatternClass
- Includes:
- TextPattern
- Defined in:
- lib/duxml/meta/grammar/pattern/text_pattern.rb
Overview
pattern representing relationship between an object and its text-only child
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#str ⇒ Object
readonly
Returns the value of attribute str.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _str, _index) ⇒ TextPatternClass
constructor
A new instance of TextPatternClass.
Methods included from TextPattern
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, _str, _index) ⇒ TextPatternClass
Returns a new instance of TextPatternClass.
13 14 15 16 17 |
# File 'lib/duxml/meta/grammar/pattern/text_pattern.rb', line 13 def initialize(_subject, _str, _index) @index = _index @string = _str super _subject end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
19 20 21 |
# File 'lib/duxml/meta/grammar/pattern/text_pattern.rb', line 19 def index @index end |
#str ⇒ Object (readonly)
Returns the value of attribute str.
19 20 21 |
# File 'lib/duxml/meta/grammar/pattern/text_pattern.rb', line 19 def str @str end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
19 20 21 |
# File 'lib/duxml/meta/grammar/pattern/text_pattern.rb', line 19 def subject @subject end |