Module: Textus::Protocol::Handlers::Concern

Included in:
Read, System, Write
Defined in:
lib/textus/protocol/handlers/concern.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/textus/protocol/handlers/concern.rb', line 5

def self.included(base)
  base.extend(self)
end

Instance Method Details

#response(**fields) ⇒ Object



9
10
11
# File 'lib/textus/protocol/handlers/concern.rb', line 9

def response(**fields)
  { "protocol" => Textus::PROTOCOL, **fields }
end