Module: Duxml::NewText
- Included in:
- NewTextClass
- Defined in:
- lib/duxml/meta/history/new_text.rb,
lib/duxml/meta/history/new_text.rb
Instance Method Summary collapse
-
#description ⇒ String
Self description.
- #line_expr ⇒ Object
- #text ⇒ Object (also: #object)
Instance Method Details
#description ⇒ String
Returns self description.
29 30 31 |
# File 'lib/duxml/meta/history/new_text.rb', line 29 def description "#{super} #{subject.description} given new text '#{text}'." end |
#line_expr ⇒ Object
33 34 35 |
# File 'lib/duxml/meta/history/new_text.rb', line 33 def line_expr subject.line < 0 ? '' : " on line #{subject.line}" end |
#text ⇒ Object Also known as: object
23 24 25 |
# File 'lib/duxml/meta/history/new_text.rb', line 23 def text subject.nodes[index] end |