Class: Packet::Callback
- Inherits:
-
Object
- Object
- Packet::Callback
- Defined in:
- lib/packet/packet_callback.rb
Instance Attribute Summary collapse
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#stored_proc ⇒ Object
Returns the value of attribute stored_proc.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Callback
constructor
A new instance of Callback.
- #invoke(*args) ⇒ Object
Constructor Details
Instance Attribute Details
#signature ⇒ Object
Returns the value of attribute signature.
4 5 6 |
# File 'lib/packet/packet_callback.rb', line 4 def signature @signature end |
#stored_proc ⇒ Object
Returns the value of attribute stored_proc.
4 5 6 |
# File 'lib/packet/packet_callback.rb', line 4 def stored_proc @stored_proc end |
Instance Method Details
#invoke(*args) ⇒ Object
10 11 12 |
# File 'lib/packet/packet_callback.rb', line 10 def invoke(*args) @stored_proc.call(*args) end |