Class: Collectd::Packet::String

Inherits:
Part
  • Object
show all
Defined in:
lib/collectd/pkt.rb

Direct Known Subclasses

Host, Message, Plugin, PluginInstance, Type, TypeInstance

Instance Method Summary collapse

Methods inherited from Part

type, #type

Constructor Details

#initialize(s) ⇒ String

Returns a new instance of String.



21
22
23
# File 'lib/collectd/pkt.rb', line 21

def initialize(s)
  @s = s
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/collectd/pkt.rb', line 24

def to_s
  super "#{@s}\000"
end