Class: Moc::Protocol::Time
- Inherits:
-
Time
- Object
- Time
- Moc::Protocol::Time
- Extended by:
- Type
- Defined in:
- lib/moc/protocol/time.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Type
Class Method Details
.read(io) ⇒ Object
16 17 18 |
# File 'lib/moc/protocol/time.rb', line 16 def self.read (io) at Integer.read(io) end |
Instance Method Details
#pack ⇒ Object
20 21 22 |
# File 'lib/moc/protocol/time.rb', line 20 def pack Integer.new(to_i).pack end |