Class: Rumai::IXP::Struct::ClassField

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

Overview

A field whose value knows how to convert itself to and from 9p.

Direct Known Subclasses

StringField

Instance Method Summary

Methods inherited from Field

factory, #initialize, #load_9p, #to_9p

Constructor Details

This class inherits a constructor from Rumai::IXP::Struct::Field

Instance Method Details

- (Object) value_from_9p(stream)



276
277
278
# File 'lib/rumai/ixp/message.rb', line 276

def value_from_9p stream
  @format.from_9p stream
end

- (Object) value_to_9p(value)



272
273
274
# File 'lib/rumai/ixp/message.rb', line 272

def value_to_9p value
  value.to_9p
end