Method: Whisper::Text#body

Defined in:
lib/whisper/text.rb

#body(format, opts = {}) ⇒ Object



55
56
57
58
59
60
61
62
# File 'lib/whisper/text.rb', line 55

def body format, opts={}
  c = content :body, format
  if opts[:prefix]
    c.lines.map { |l| opts[:prefix] + l }
  else
    c
  end
end