Calamity Lane

Curious Code for Curious Coders

Brainmallows

I love these things. They’re all filler and no meat, like marshmallow sandwiches. Which are also delicious.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Jungle
  attr_reader :fun, :games, :everything_you_want

  def welcome(new_user)
    self.new(new_user)
  end

  def initialize(new_user)
    (@@names ||= []) << new_user.name
  end

  def find(needs_query)
    return "Whatever: #{needs_query}"
  end

  def receive_money(amount)
    # TODO: this may be returning an unwanted value
    # check with Jim in accounting
    return :your_disease if amount > 0.0
  end
end

Jungle.welcome(honey)

Answer after the jump.

Welcome to the Jungle – Guns ‘n’ Roses

Welcome to the jungle
We got fun 'n' games
We got everything you want
Honey we know the names
We are the people that can find
Whatever you may need
If you got the money honey
We got your disease