Class: Nl::Protocols::Raw::DataTypes::Binary
- Inherits:
-
Object
- Object
- Nl::Protocols::Raw::DataTypes::Binary
- Defined in:
- lib/nl/protocols/raw.rb
Instance Method Summary collapse
- #decode(decoder) ⇒ Object
- #encode(encoder, value) ⇒ Object
-
#initialize(check) ⇒ Binary
constructor
A new instance of Binary.
Constructor Details
#initialize(check) ⇒ Binary
Returns a new instance of Binary.
296 297 298 |
# File 'lib/nl/protocols/raw.rb', line 296 def initialize(check) @check = check end |
Instance Method Details
#decode(decoder) ⇒ Object
304 305 306 |
# File 'lib/nl/protocols/raw.rb', line 304 def decode(decoder) decoder.get_string end |
#encode(encoder, value) ⇒ Object
300 301 302 |
# File 'lib/nl/protocols/raw.rb', line 300 def encode(encoder, value) encoder.put_string(value) end |