Module: RubyQmail::Netstring
- Included in:
- String
- Defined in:
- lib/netstring.rb
Instance Method Summary collapse
-
#to_netstring ⇒ Object
Converts the string to a netstring: “length:value,”.
Instance Method Details
#to_netstring ⇒ Object
Converts the string to a netstring: “length:value,”
5 6 7 |
# File 'lib/netstring.rb', line 5 def to_netstring() "#{self.size}:#{self}," end |