Created
July 15, 2019 22:47
-
-
Save dabit/8137b426798a1364959b8e7090d4f054 to your computer and use it in GitHub Desktop.
libertinaje
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 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