class Hermes::PlainText
Public Class Methods
new(text)
click to toggle source
Calls superclass method
# File lib/hermes/types.rb, line 27 def initialize text super gsub! /\s+/, " " strip! end
Public Instance Methods
encode()
click to toggle source
# File lib/hermes/types.rb, line 35 def encode (HeaderExt.encode self).split end
parse(str)
click to toggle source
# File lib/hermes/types.rb, line 22 def parse str t = HeaderExt.decode str new t end
quote()
click to toggle source
# File lib/hermes/types.rb, line 32 def quote to_s end