Class: Astel::Rewriter::Edit
- Inherits:
-
Data
- Object
- Data
- Astel::Rewriter::Edit
- Defined in:
- lib/astel/rewriter.rb
Instance Attribute Summary collapse
-
#end_offset ⇒ Object
readonly
Returns the value of attribute end_offset.
-
#replacement ⇒ Object
readonly
Returns the value of attribute replacement.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#start_offset ⇒ Object
readonly
Returns the value of attribute start_offset.
Instance Method Summary collapse
Instance Attribute Details
#end_offset ⇒ Object (readonly)
Returns the value of attribute end_offset
16 17 18 |
# File 'lib/astel/rewriter.rb', line 16 def end_offset @end_offset end |
#replacement ⇒ Object (readonly)
Returns the value of attribute replacement
16 17 18 |
# File 'lib/astel/rewriter.rb', line 16 def replacement @replacement end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence
16 17 18 |
# File 'lib/astel/rewriter.rb', line 16 def sequence @sequence end |
#start_offset ⇒ Object (readonly)
Returns the value of attribute start_offset
16 17 18 |
# File 'lib/astel/rewriter.rb', line 16 def start_offset @start_offset end |
Instance Method Details
#insertion? ⇒ Boolean
17 18 19 |
# File 'lib/astel/rewriter.rb', line 17 def insertion? start_offset == end_offset end |