Class: LanguageServer::Protocol::Interfaces::ReferenceParams
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interfaces::ReferenceParams
- Defined in:
- lib/language_server/protocol/interfaces/reference_params.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #context ⇒ ReferenceContext
-
#initialize(context:) ⇒ ReferenceParams
constructor
A new instance of ReferenceParams.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(context:) ⇒ ReferenceParams
Returns a new instance of ReferenceParams.
5 6 7 8 9 10 11 |
# File 'lib/language_server/protocol/interfaces/reference_params.rb', line 5 def initialize(context:) @attributes = {} @attributes[:context] = context @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
18 19 20 |
# File 'lib/language_server/protocol/interfaces/reference_params.rb', line 18 def attributes @attributes end |
Instance Method Details
#context ⇒ ReferenceContext
14 15 16 |
# File 'lib/language_server/protocol/interfaces/reference_params.rb', line 14 def context attributes.fetch(:context) end |
#to_json(*args) ⇒ Object
20 21 22 |
# File 'lib/language_server/protocol/interfaces/reference_params.rb', line 20 def to_json(*args) attributes.to_json(*args) end |