forked from jpfuentes2/a-letter-to-Augusta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathletter.rb
18 lines (15 loc) · 873 Bytes
/
letter.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "./love"
# this script requires ruby 1.9
# passes a hash of :to=>Augusta to the method a_letter
a_letter to: Augusta do
# calls twas method with a hash, and a block
# the block is just calling the "<<" method
twas(only: 16.months.ago) { The::Universe << You.to(OurFamily) }
# "*" is the splat operator, in this case coercing the string into an array
# in ruby 1.9.3, you must assign " *"wonderful!" " to a variable and then use the variable with zip to get a interleaved array. The code as it currently stands will act as if an empty array was passed to zip
life.has :been => %w(i n c r e d i b l y).zip(*"wonderful!").ever_since
We::Wish.we_could { experience these_moments: over & over }
You.will always_be: Loved, and: Cherished
# "Forever.()" runs the Forever proc (notice the dot operator)
until Infinity.ends do; Forever.(); end
end