Module: HolyCow

Defined in:
lib/holy_cow.rb,
lib/holy_cow/version.rb

Defined Under Namespace

Classes: Mailer

Constant Summary collapse

VERSION =
"0.0.3"
@@recipient_list =
[]
@@from_address =
"[email protected]"

Class Method Summary collapse

Class Method Details

.from_address(addr = nil) ⇒ Object



20
21
22
23
24
25
# File 'lib/holy_cow.rb', line 20

def self.from_address(addr=nil)
  if (addr) 
    @@from_address = addr
  end
  @@from_address
end

.from_address=(addr) ⇒ Object



27
28
29
# File 'lib/holy_cow.rb', line 27

def self.from_address=(addr)
  @@from_address = addr
end

.recipient(addr) ⇒ Object

Your code goes here…



9
10
11
# File 'lib/holy_cow.rb', line 9

def self.recipient(addr)
  @@recipient_list << addr
end

.recipients(*args) ⇒ Object



13
14
15
16
17
18
# File 'lib/holy_cow.rb', line 13

def self.recipients(*args)
  if (args)
    @@recipient_list += args.flatten
  end
  @@recipient_list
end