class LanguageServer::Protocol::Interface::InlineValueText
Provide inline value as text.
Attributes
attributes[R]
Public Class Methods
new(range:, text:)
click to toggle source
# File lib/language_server/protocol/interface/inline_value_text.rb, line 8 def initialize(range:, text:) @attributes = {} @attributes[:range] = range @attributes[:text] = text @attributes.freeze end
Public Instance Methods
range()
click to toggle source
The document range for which the inline value applies.
@return [Range]
# File lib/language_server/protocol/interface/inline_value_text.rb, line 21 def range attributes.fetch(:range) end
text()
click to toggle source
The text of the inline value.
@return [string]
# File lib/language_server/protocol/interface/inline_value_text.rb, line 29 def text attributes.fetch(:text) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/inline_value_text.rb, line 35 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/inline_value_text.rb, line 39 def to_json(*args) to_hash.to_json(*args) end