Class: Rumai::IXP::Struct::StringField

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

Overview

A field whose value is a string.

Instance Attribute Summary

Attributes inherited from Field

#countee, #counter, #format, #name

Instance Method Summary collapse

Methods inherited from ClassField

#value_from_9p

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_to_9p(value) ⇒ Object



285
286
287
# File 'lib/rumai/ixp/message.rb', line 285

def value_to_9p value
  value.to_s.to_9p
end