Class: PuppetEditorServices::Handler::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_editor_services/handler/base.rb

Direct Known Subclasses

DebugAdapter, JsonRPC

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/puppet_editor_services/handler/base.rb', line 8

def initialize(protocol)
  @protocol = protocol
end

Instance Attribute Details

#protocolObject (readonly)

Returns the value of attribute protocol.



6
7
8
# File 'lib/puppet_editor_services/handler/base.rb', line 6

def protocol
  @protocol
end

Instance Method Details

#handle(_message, _context = {}) ⇒ Object

This method is abstract.


13
# File 'lib/puppet_editor_services/handler/base.rb', line 13

def handle(_message, _context = {}); end