Class: Time

Inherits:
Object show all
Defined in:
lib/rumai/ixp/message.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_9p(stream) ⇒ Object

Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.



721
722
723
# File 'lib/rumai/ixp/message.rb', line 721

def self.from_9p stream
  at stream.read_9p(4)
end

Instance Method Details

#to_9pObject

Transforms this object into a string of 9P2000 bytes.



713
714
715
# File 'lib/rumai/ixp/message.rb', line 713

def to_9p
  to_i.to_9p(4)
end