opensoul.org

Raise the roof, yo!

December 6, 2010 code 1 min read

Check out this awesome abuse of Ruby syntax from Don Petersen:

module Kernel
  def the(a, b)
    a.new(b)
  end

  def roof
    Exception
  end

  def yo!
    "Get your hands in the air, wave them like..."
  end
end

raise the roof, yo!
# Exception: Get your hands in the air, wave them like...
This content is open source. Suggest Improvements.

@bkeepers

avatar of Brandon Keepers I am Brandon Keepers, and I work at GitHub on making Open Source more approachable, effective, and ubiquitous. I tend to think like an engineer, work like an artist, dream like an astronaut, love like a human, and sleep like a baby.