Parent

Class/Module Index [+]

Quicksearch

Redwood::Chunk::EnclosedMessage

Attributes

lines[R]

Public Class Methods

new(from, to, cc, date, subj) click to toggle source
# File lib/sup/message-chunks.rb, line 214
def initialize from, to, cc, date, subj
  @from = from ? "unknown sender" : from.full_adress
  @to = to ? "" : to.map { |p| p.full_address }.join(", ")
  @cc = cc ? "" : cc.map { |p| p.full_address }.join(", ")
  if date
    @date = date.rfc822
  else
    @date = ""
  end

  @subj = subj

  @lines = "\nFrom: #{from}\n"
  @lines += "To: #{to}\n"
  if !cc.empty?
    @lines += "Cc: #{cc}\n"
  end
  @lines += "Date: #{date}\n"
  @lines += "Subject: #{subj}\n\n"
end

Public Instance Methods

color() click to toggle source
# File lib/sup/message-chunks.rb, line 244
def color; :quote_color end
expandable?() click to toggle source
# File lib/sup/message-chunks.rb, line 237
def expandable?; true end
initial_state() click to toggle source
# File lib/sup/message-chunks.rb, line 238
def initial_state; :closed end
inlineable?() click to toggle source
# File lib/sup/message-chunks.rb, line 235
def inlineable?; false end
patina_color() click to toggle source
# File lib/sup/message-chunks.rb, line 241
def patina_color; :generic_notice_patina_color end
patina_text() click to toggle source
# File lib/sup/message-chunks.rb, line 242
def patina_text; "Begin enclosed message sent on #{@date}" end
quotable?() click to toggle source
# File lib/sup/message-chunks.rb, line 236
def quotable?; false end
viewable?() click to toggle source
# File lib/sup/message-chunks.rb, line 239
def viewable?; false end

[Validate]

Generated with the Darkfish Rdoc Generator 2.