Class: Pio::Icmp::Message
Overview
Base class of Icmp::Request and Icmp::Reply.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user_options) ⇒ Message
constructor
A new instance of Message.
- #method_missing(method, *args) ⇒ Object
Methods included from ClassInspector
Methods included from Pio::InstanceInspector
Methods inherited from Message
Methods included from RubyDumper
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
30 31 32 |
# File 'lib/pio/icmp/message.rb', line 30 def method_missing(method, *args) @format.__send__(method, *args) end |
Class Method Details
.create(format) ⇒ Object
20 21 22 23 24 |
# File 'lib/pio/icmp/message.rb', line 20 def self.create(format) allocate.tap do || .instance_variable_set :@format, format end end |