Class: LanguageServer::Protocol::Interface::PrepareRenameResult
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::PrepareRenameResult
- Defined in:
- lib/language_server/protocol/interface/prepare_rename_result.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #default_behavior ⇒ boolean
-
#end ⇒ Position
The range’s end position.
-
#initialize(start:, end:, range:, placeholder:, default_behavior:) ⇒ PrepareRenameResult
constructor
A new instance of PrepareRenameResult.
- #placeholder ⇒ string
- #range ⇒ Range
-
#start ⇒ Position
The range’s start position.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(start:, end:, range:, placeholder:, default_behavior:) ⇒ PrepareRenameResult
Returns a new instance of PrepareRenameResult.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 5 def initialize(start:, end:, range:, placeholder:, default_behavior:) @attributes = {} @attributes[:start] = start @attributes[:end] = binding.local_variable_get(:end) @attributes[:range] = range @attributes[:placeholder] = placeholder @attributes[:defaultBehavior] = default_behavior @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
48 49 50 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 48 def attributes @attributes end |
Instance Method Details
#default_behavior ⇒ boolean
44 45 46 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 44 def default_behavior attributes.fetch(:defaultBehavior) end |
#end ⇒ Position
The range’s end position.
29 30 31 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 29 def end attributes.fetch(:end) end |
#placeholder ⇒ string
39 40 41 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 39 def placeholder attributes.fetch(:placeholder) end |
#range ⇒ Range
34 35 36 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 34 def range attributes.fetch(:range) end |
#start ⇒ Position
The range’s start position.
21 22 23 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 21 def start attributes.fetch(:start) end |
#to_hash ⇒ Object
50 51 52 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 50 def to_hash attributes end |
#to_json(*args) ⇒ Object
54 55 56 |
# File 'lib/language_server/protocol/interface/prepare_rename_result.rb', line 54 def to_json(*args) to_hash.to_json(*args) end |