Class: Nl::DataTypes::String
- Inherits:
-
Base
- Object
- Base
- Nl::DataTypes::String
show all
- Defined in:
- nl/lib/nl/datatypes.rb
Instance Method Summary
collapse
Methods inherited from Base
#coerce, #nlattr_type_flags
Constructor Details
#initialize(check:) ⇒ String
Returns a new instance of String.
85
86
87
|
# File 'nl/lib/nl/datatypes.rb', line 85
def initialize(check:)
super(check:)
end
|
Instance Method Details
#decode(decoder, context: nil, nlattr_type_flags: 0) ⇒ Object
93
94
95
|
# File 'nl/lib/nl/datatypes.rb', line 93
def decode(decoder, context: nil, nlattr_type_flags: 0)
checked(decoder.get_zstring)
end
|
#encode(encoder, value, context: nil) ⇒ Object
89
90
91
|
# File 'nl/lib/nl/datatypes.rb', line 89
def encode(encoder, value, context: nil)
encoder.put_zstring(checked(value))
end
|