Class: Duxml::ChangeTextClass
- Inherits:
-
ChangeClass
- Object
- PatternClass
- ChangeClass
- Duxml::ChangeTextClass
- Includes:
- ChangeText
- Defined in:
- lib/duxml/meta/history/change_text.rb
Overview
created when doc has text and text has been changed
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#old_text ⇒ Object
readonly
Returns the value of attribute old_text.
Attributes inherited from ChangeClass
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _index, _old_text) ⇒ ChangeTextClass
constructor
A new instance of ChangeTextClass.
Methods included from ChangeText
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, _index, _old_text) ⇒ ChangeTextClass
Returns a new instance of ChangeTextClass.
14 15 16 17 |
# File 'lib/duxml/meta/history/change_text.rb', line 14 def initialize(_subject, _index, _old_text) super _subject @index, @old_text = _index, _old_text end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
19 20 21 |
# File 'lib/duxml/meta/history/change_text.rb', line 19 def index @index end |
#old_text ⇒ Object (readonly)
Returns the value of attribute old_text.
19 20 21 |
# File 'lib/duxml/meta/history/change_text.rb', line 19 def old_text @old_text end |