Skip to content

Instantly share code, notes, and snippets.

View diegoromera's full-sized avatar

diegoromera diegoromera

View GitHub Profile
@diegoromera
diegoromera / diego
Created April 7, 2012 15:26
diego_unicorn_ruby_workshop
class Unicorn
def initialize(horn_length,gconsumed)
@horn_length = horn_length
@gconsumed = gconsumed
end
def eatglitter(amount)
@gconsumed += amount
end
def grownhorn
@horn_lenght = @horn_length + 1