Skip to content

Instantly share code, notes, and snippets.

module AwesomeResource
attr_reader :awesome_attributes
def initialize(attributes={})
@awesome_attributes = Struct.new(*attributes.keys.map(&:to_sym)).new *attributes.values
end
def method_missing(method_name, *args)
if args.any?
awesome_attributes.send(method_name, args.first)
@russen
russen / recipe.txt
Last active December 14, 2015 11:29
Oreo-Peanutbutter-Gluten-Free cupcakes
1. 1 box - Glutino Oreos
2. 1/4 jar peanut butter - your favorite type
3. Pamelas GF Brownie Mix - http://pamelasproducts.com/products/baking-mixes/pamelas-chocolate-brownie-mix/
3.1. 1/2 cup melted butter
3.2. 1 cup sugar
3.3. 2 eggs
3.4. 1 tsp vanilla extract
4. Cupcake baking-tin
5. Cupcake sleeves