Class: RubyLsp::Refactor::NodeContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_lsp/ruby_lsp_refactor/addon.rb

Overview

Lightweight value object that satisfies the interface expected by every listener: #uri and #range.

Instance Attribute Summary collapse

Instance Attribute Details

#rangeObject

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



32
33
34
# File 'lib/ruby_lsp/ruby_lsp_refactor/addon.rb', line 32

def range
  @range
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



32
33
34
# File 'lib/ruby_lsp/ruby_lsp_refactor/addon.rb', line 32

def uri
  @uri
end