Class: Pio::Arp::Message
Overview
Base class of ARP Request and 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 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
20 21 22 |
# File 'lib/pio/arp/message.rb', line 20 def method_missing(method, *args) @format.__send__ method, *args end |
Class Method Details
.create(format) ⇒ Object
10 11 12 13 14 |
# File 'lib/pio/arp/message.rb', line 10 def self.create(format) allocate.tap do || .instance_variable_set :@format, format end end |