Class: Ruber::AutoEnd::Extension::Insertion

Inherits:
Struct
  • Object
show all
Defined in:
plugins/auto_end/auto_end.rb

Overview

Contains the information about the next insertion to do

Instance Attribute Summary (collapse)

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

Returns:

  • (Array(Integer,Integer))

    the current value of final_position



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

Returns:

  • (Integer)

    the current value of line_number



80
81
82
# File 'plugins/auto_end/auto_end.rb', line 80

def line_number
  @line_number
end

- (String) lines

the text to insert

Returns:

  • (String)

    the current value of lines



80
81
82
# File 'plugins/auto_end/auto_end.rb', line 80

def lines
  @lines
end