Calamity Lane

Curious Code for Curious Coders

Berceuse Code Lyrical

Somewhat in the same vein as our last one:

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
def Son
  def pray(beneficiaries)
    unless beneficiaries.uniq.size == EVERYONE.size
      raise(ArgumentError, "Prayers should include everyone!")
    end
    @prayed = true
  end

  def tuck
    if @prayed
      internal_temperature = 99.9
      @sin_free = true
    end
  end

  def sleeping
    unless @eyes_open >= 1 && @pillow.gripped?
      @anthropomrphic_personification = Sandman.enter
      @sin_free = false
    end
  end
end

def Sandman
  def enter
    Light.exit
    Night.enter
    Hand.take
    never_never_land(:off)
    self.new
  end
end

Enter the Sandman by Metallica

Say your prayers little one
Don't forget, my son
To include everyone

Tuck you in, warm within
Keep you free from sin
Till the sandman he comes

Sleep with one eye open
Gripping your pillow tight

Exit light
Enter night
Take my hand
Off to never never land