Class: Lsp::Position
- Inherits:
-
Struct
- Object
- Struct
- Lsp::Position
- Defined in:
- lib/lsp.rb
Instance Attribute Summary collapse
-
#character ⇒ Object
Returns the value of attribute character.
-
#line ⇒ Object
Returns the value of attribute line.
Class Method Summary collapse
Instance Attribute Details
#character ⇒ Object
Returns the value of attribute character
26 27 28 |
# File 'lib/lsp.rb', line 26 def character @character end |
#line ⇒ Object
Returns the value of attribute 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 |