Class: Lsp::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/lsp.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#characterObject

Returns the value of attribute character

Returns:

  • (Object)

    the current value of character



26
27
28
# File 'lib/lsp.rb', line 26

def character
  @character
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



26
27
28
# File 'lib/lsp.rb', line 26

def line
  @line
end

Class Method Details

.from_hash(line:, character:) ⇒ Object



27
28
29
# File 'lib/lsp.rb', line 27

def self.from_hash(line:, character:)
  new(line, character)
end