Class: Protopuffs::Numeric

Inherits:
MessageField show all
Defined in:
lib/protopuffs/message/field.rb

Direct Known Subclasses

Fixed32Base, Fixed64Base, VarInt

Instance Attribute Summary

Attributes inherited from MessageField

#default, #identifier, #tag

Instance Method Summary collapse

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