Class: Dtn::Messages::System::Generic::CurrentProtocol
- Inherits:
-
Dtn::Message
- Object
- OpenStruct
- Dtn::Message
- Dtn::Messages::System::Generic::CurrentProtocol
- Defined in:
- lib/dtn/messages/system/generic.rb
Overview
Gem will support only one protocol version at the time
Class Method Summary collapse
Methods inherited from Dtn::Message
Class Method Details
.parse ⇒ Object
40 41 42 |
# File 'lib/dtn/messages/system/generic.rb', line 40 def parse(**) super.tap { || (.line =~ /6.1/) || raise("Unsupported protocol: #{}") } end |