Class: Duxml::NewTextClass
- Inherits:
-
ChangeClass
- Object
- PatternClass
- ChangeClass
- Duxml::NewTextClass
- Includes:
- NewText
- Defined in:
- lib/duxml/meta/history/new_text.rb
Overview
created when object had no children or text and text has been added
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Attributes inherited from ChangeClass
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _str, _index) ⇒ NewTextClass
constructor
A new instance of NewTextClass.
Methods included from NewText
#description, #line_expr, #text
Methods included from Change
#<=>, #abstract?, #description, #line
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) ⇒ NewTextClass
Returns a new instance of NewTextClass.
14 15 16 17 |
# File 'lib/duxml/meta/history/new_text.rb', line 14 def initialize(_subject, _str, _index) super _subject @index, @str = _index, _str end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
19 20 21 |
# File 'lib/duxml/meta/history/new_text.rb', line 19 def index @index end |
#str ⇒ Object (readonly)
Returns the value of attribute str.
19 20 21 |
# File 'lib/duxml/meta/history/new_text.rb', line 19 def str @str end |