Skip to content

Instantly share code, notes, and snippets.

View brentertz's full-sized avatar

Brent Ertz brentertz

View GitHub Profile
@brentertz
brentertz / cream_and_sugar.rb
Created November 9, 2012 14:46 — forked from joshuaclayton/cream_and_sugar.rb
Ruby Decorators using BasicObject
require "money"
class Decorator < BasicObject
undef_method :==
def initialize(component)
@component = component
end
def method_missing(name, *args, &block)