Class: Protopuffs::Numeric
- Inherits:
-
MessageField
- Object
- MessageField
- Protopuffs::Numeric
- Defined in:
- lib/protopuffs/message/field.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from MessageField
Instance Method Summary collapse
-
#initialize(modifier, identifier, tag, default = nil) ⇒ Numeric
constructor
A new instance of Numeric.
Methods inherited from MessageField
factory, #key, #optional?, #repeated?, shift_tag, #to_wire_format_with_value
Constructor Details
#initialize(modifier, identifier, tag, default = nil) ⇒ Numeric
Returns a new instance of Numeric.
85 86 87 |
# File 'lib/protopuffs/message/field.rb', line 85 def initialize(modifier, identifier, tag, default = nil) super(modifier, identifier, tag, default || 0) end |