Class: Nl::DataTypes::Base
- Inherits:
-
Object
- Object
- Nl::DataTypes::Base
- Defined in:
- nl/lib/nl/datatypes.rb
Direct Known Subclasses
Binary, Bitfield32, Flag, IndexedArray, NestTypeValue, NestedAttributes, PackedArray, Pad, Scalar, String, Struct, SubMessage, VariableInteger
Instance Method Summary collapse
- #coerce(value, context: nil) ⇒ Object
-
#initialize(check: nil) ⇒ Base
constructor
A new instance of Base.
- #nlattr_type_flags(_value = nil, context: nil) ⇒ Object
Constructor Details
#initialize(check: nil) ⇒ Base
Returns a new instance of Base.
15 16 17 |
# File 'nl/lib/nl/datatypes.rb', line 15 def initialize(check: nil) @check = check end |
Instance Method Details
#coerce(value, context: nil) ⇒ Object
23 24 25 |
# File 'nl/lib/nl/datatypes.rb', line 23 def coerce(value, context: nil) value end |
#nlattr_type_flags(_value = nil, context: nil) ⇒ Object
19 20 21 |
# File 'nl/lib/nl/datatypes.rb', line 19 def nlattr_type_flags(_value = nil, context: nil) 0 end |