Class: Steep::Project::CompletionProvider::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/steep/project/completion_provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



4
5
6
# File 'lib/steep/project/completion_provider.rb', line 4

def column
  @column
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



4
5
6
# File 'lib/steep/project/completion_provider.rb', line 4

def line
  @line
end

Instance Method Details

#-(size) ⇒ Object



5
6
7
# File 'lib/steep/project/completion_provider.rb', line 5

def -(size)
  Position.new(line: line, column: column - size)
end