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
Constant Summary
Constants included from Duxml
Constants included from Meta
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Attributes inherited from ChangeClass
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_subject, _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
Methods included from Duxml
#create, #load, #log, #relaxng, #save, #validate
Methods included from Meta
Methods included from Saxer
Constructor Details
#initialize(_subject, _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, _index) super _subject @index = _index 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 |