Class: PuppetLanguageServer::Sidecar::Protocol::PuppetFunctionSignatureParameter
- Inherits:
-
BaseClass
- Object
- BaseClass
- PuppetLanguageServer::Sidecar::Protocol::PuppetFunctionSignatureParameter
- Defined in:
- lib/puppet-languageserver/sidecar_protocol.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key.
-
#name ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key.
-
#signature_key_length ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key.
-
#signature_key_offset ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key.
-
#types ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key.
Instance Method Summary collapse
Methods inherited from BaseClass
#==, #eql?, #from_json!, #hash, #to_json
Methods included from Base
Instance Attribute Details
#doc ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key
322 323 324 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322 def doc @doc end |
#name ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key
322 323 324 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322 def name @name end |
#signature_key_length ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key
322 323 324 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322 def signature_key_length @signature_key_length end |
#signature_key_offset ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key
322 323 324 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322 def signature_key_offset @signature_key_offset end |
#types ⇒ Object
Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key
322 323 324 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322 def types @types end |
Instance Method Details
#from_h!(value) ⇒ Object
334 335 336 337 338 339 340 341 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 334 def from_h!(value) self.name = value['name'] self.doc = value['doc'] self.types = value['types'] self.signature_key_offset = value['signature_key_offset'] self.signature_key_length = value['signature_key_length'] self end |
#to_h ⇒ Object
324 325 326 327 328 329 330 331 332 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 324 def to_h { 'name' => name, 'doc' => doc, 'types' => types, 'signature_key_offset' => signature_key_offset, 'signature_key_length' => signature_key_length } end |