Module: Takumi::Packet::Dsl

Defined in:
lib/takumi/packet/dsl.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/takumi/packet/dsl.rb', line 4

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

Instance Method Details

#to_sObject



23
24
25
# File 'lib/takumi/packet/dsl.rb', line 23

def to_s
  ::Takumi::Packet.encode(self.class, self)
end