Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Last active January 2, 2016 23:49
Show Gist options
  • Select an option

  • Save joseluistorres/8378361 to your computer and use it in GitHub Desktop.

Select an option

Save joseluistorres/8378361 to your computer and use it in GitHub Desktop.
Herencia - Parte 1
class Taco
attr_reader :maiz_o_harina, :sabor, :cebolla, :cilantro
def initialize(args)
@maiz_o_harina = args[:maiz_o_harina]
@sabor = args[:sabor]
@cebolla = args[:cebolla]
@cilantro = args[:cilantro]
end
def verdura
{ cebolla: cebolla,
:cilantro cilantro}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment