Skip to content

Instantly share code, notes, and snippets.

@dabit
Created July 15, 2019 22:47
Show Gist options
  • Save dabit/8137b426798a1364959b8e7090d4f054 to your computer and use it in GitHub Desktop.
Save dabit/8137b426798a1364959b8e7090d4f054 to your computer and use it in GitHub Desktop.
libertinaje
module Attributes
attr_accessor :mi_atributo
end
class LaClase
include Attributes
def por_que_funciona?
valor = mi_atributo + 3
end
def le_paso_el_atributo(mi_atributo)
valor = mi_atributo + 5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment