Class: Ruber::AutoEnd::Extension::Insertion
- Inherits:
-
Struct
- Object
- Struct
- Ruber::AutoEnd::Extension::Insertion
- Defined in:
- plugins/auto_end/auto_end.rb
Overview
Contains the information about the next insertion to do
Instance Attribute Summary (collapse)
-
- (Array(Integer,Integer)) final_position
the position to move after the insertion The first element is the line number, relative to the insertion line (for example, a value of 1 means to move the cursor to the line after the insertion line, while a value of -1 means to move it to the line before).
-
- (Integer) line_number
the number of the line where the insertion should be done.
-
- (String) lines
the text to insert.
Instance Attribute Details
- (Array(Integer,Integer)) final_position
the position to move after the insertion The first element is the line number, relative to the insertion line (for example, a value of 1 means to move the cursor to the line after the insertion line, while a value of -1 means to move it to the line before). The second element is the column number. If negative, it’s counted from the end of the line
80 81 82 |
# File 'plugins/auto_end/auto_end.rb', line 80 def final_position @final_position end |
- (Integer) line_number
the number of the line where the insertion should be done
80 81 82 |
# File 'plugins/auto_end/auto_end.rb', line 80 def line_number @line_number end |
- (String) lines
the text to insert
80 81 82 |
# File 'plugins/auto_end/auto_end.rb', line 80 def lines @lines end |