Class: Lsp::Range
- Inherits:
-
Struct
- Object
- Struct
- Lsp::Range
- Defined in:
- lib/lsp.rb
Instance Attribute Summary collapse
-
#end ⇒ Object
Returns the value of attribute end.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
Instance Attribute Details
#end ⇒ Object
Returns the value of attribute end
31 32 33 |
# File 'lib/lsp.rb', line 31 def end @end end |
#start ⇒ Object
Returns the value of attribute start
31 32 33 |
# File 'lib/lsp.rb', line 31 def start @start end |
Instance Method Details
#to_h ⇒ Object
32 33 34 35 36 37 |
# File 'lib/lsp.rb', line 32 def to_h { start: start.to_h, end: self.end.to_h, } end |