public
Fork of joho/absurd-time-extensions
Description: Added some stupid extensions to the time class, such as the swatch "internet time", and the is_beer_oclock? method
Clone URL: git://github.com/markmansour/absurd-time-extensions.git
Now with singer lovin
markmansour (author)
Wed Jul 09 04:40:47 -0700 2008
commit  1496f089860481dc0347ba01dc11163333bfb219
tree    10fe23c046c80db230c510bf4bd35c2d86e3e9e8
parent  fde05d981bef64ba70df7b01b7234f298f510326
...
11
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
16
17
...
41
42
43
 
 
44
 
 
 
45
46
...
11
12
13
 
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
...
56
57
58
59
60
61
62
63
64
65
66
0
@@ -11,7 +11,22 @@ class Time
0
   end
0
   
0
   # handling the vanilla ice/mc hammer event
0
- attr_accessor :white_rapper
0
+ attr_accessor :singer
0
+
0
+ def to
0
+ case singer
0
+ when "Stevie Wonder": ["love"]
0
+ when "The Byrds": ["born", "die", "plant", "reap", "kill", "heal", "laugh", "weep",
0
+ "build up", "break down", "dance", "mourn", "cast away stones", "gather stones together",
0
+ "war", "peace", "love", "hate", "you may embrace", "refrain from embracing",
0
+ "gain", "lose", "rend", "sew", "love", "hate", "peace, I swear it's not too late!"]
0
+ when "Interpol": ["Be So Small"]
0
+ when "Andrea Bocelli": ["say goodbye"]
0
+ when "Genesis": ["say", "change"]
0
+ else ["get a singer"]
0
+ end
0
+ end
0
+
0
   def stop!
0
     if white_rapper
0
       "collaborate and listen"
0
@@ -41,6 +56,11 @@ class Time
0
   def coffee?(cutoff_hour = 15)
0
     self.hour < cutoff_hour
0
   end
0
+
0
+ private
0
   
0
+ def white_rapper
0
+ singer == "vanilla ice"
0
+ end
0
 end
0
 

Comments

    No one has commented yet.