-
Notifications
You must be signed in to change notification settings - Fork 9
/
invitation.rb
55 lines (46 loc) · 1.31 KB
/
invitation.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require 'family'
require 'friends'
heather = Bride.new
dom = Groom.new
class Wedding < ActiveEngagement::Base
def invite
puts <<-INVITE
Mr & Mrs S Burke invite you to
the Wedding of their daughter
Heather Maria Burke
to
Dominic Thomas Hodgson
On the xxth of October 20xx
At the xxxx xxxx, Leeds
----------------------------------------------------------
_ Heather and Dom
___ {@} _|=|_
/___\ /(")\ (")
.---'-'---. /((~))\/<x>\ _ .-.
/___________\ ~~/@\~~\|_|/ <v> ((_))
| A /^\ A | / \ ||| ((_)) '-'
| |"| | /~@~@~\ ||| '-'
____|___|_|___|_____/_______\|||___October 25th 2013___
Ceremony Commences at 12:00
Followed by a
Wedding Breakfast & Evening Reception
INVITE
if self.internet_access?
redirect_to 'http://heatheranddom.com/rsvp'
else
rsvp_to 'Mr + Mrs Burke, Address Here'
end
end
def ceremony
begin
Ceremony.start
heather.kissed_by(dom)
Ceremony.sign_register(heather, dom)
heather.surname! = "Hodgson"
throw :bouquet
Ceremony.end
rescue AnyLawfulImpediment
# This should never happen!
end
end
end