Class: SerizableConstant
- Inherits:
-
SerizableVariable
- Object
- SerizableVariable
- SerizableConstant
- Defined in:
- lib/steamd/generator/ruby/serializable_constant.rb
Overview
Serializable const
Instance Attribute Summary
Attributes inherited from SerizableVariable
#flag, #modifier, #modifier_size, #name, #size, #value
Instance Method Summary collapse
-
#deserialize ⇒ Object
Deserialize the constant.
-
#serialize ⇒ Object
Serialize the constant.
-
#type ⇒ Type
Override the type for constants, always integer.
Methods inherited from SerizableVariable
Constructor Details
This class inherits a constructor from SerizableVariable
Instance Method Details
#deserialize ⇒ Object
Deserialize the constant
17 18 19 |
# File 'lib/steamd/generator/ruby/serializable_constant.rb', line 17 def deserialize @value = deserialize_primitive end |
#serialize ⇒ Object
Serialize the constant
12 13 14 |
# File 'lib/steamd/generator/ruby/serializable_constant.rb', line 12 def serialize serialize_primitive end |