This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |