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 Attribute Summary

Attributes inherited from Field

#countee, #counter, #format, #name

Instance Method Summary collapse

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

#value_from_9p(stream) ⇒ Object



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

def value_from_9p stream
  @format.from_9p stream
end

#value_to_9p(value) ⇒ Object



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

def value_to_9p value
  value.to_9p
end