Module: RubyQmail::Netstring

Included in:
String
Defined in:
lib/netstring.rb

Instance Method Summary collapse

Instance Method Details

#to_netstringObject

Converts the string to a netstring: “length:value,”



5
6
7
# File 'lib/netstring.rb', line 5

def to_netstring()
  "#{self.size}:#{self},"
end