Class: CollectdServer::Packet::String
- Defined in:
- lib/collectd_server/packet.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Part
Instance Method Summary collapse
-
#initialize(content) ⇒ String
constructor
A new instance of String.
Methods inherited from Part
add_type, class_for, part_for, type
Constructor Details
#initialize(content) ⇒ String
Returns a new instance of String.
102 103 104 |
# File 'lib/collectd_server/packet.rb', line 102 def initialize(content) @content = content[0..-2] # strip off the null byte at the end end |