Class: LanguageServer::Protocol::Interface::T
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::T
- Defined in:
- lib/language_server/protocol/interface/t.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize ⇒ T
constructor
A new instance of T.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize ⇒ T
5 6 7 8 9 10 |
# File 'lib/language_server/protocol/interface/t.rb', line 5 def initialize() @attributes = {} @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
12 13 14 |
# File 'lib/language_server/protocol/interface/t.rb', line 12 def attributes @attributes end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 |
# File 'lib/language_server/protocol/interface/t.rb', line 14 def to_hash attributes end |
#to_json(*args) ⇒ Object
18 19 20 |
# File 'lib/language_server/protocol/interface/t.rb', line 18 def to_json(*args) to_hash.to_json(*args) end |