module RubyQmail::Netstring
Public Instance Methods
to_netstring()
click to toggle source
Converts the string to a netstring: “length:value,”
# File lib/netstring.rb, line 5 def to_netstring() "#{self.size}:#{self}," end