Last active
December 13, 2018 02:28
-
-
Save hackvan/8f9d7d013d9160f2bd4a0aefa44bf5d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
instance_variable_set(name, value) # Nos permite definir y asignar un valor a una nueva variable de instancia | |
define_method(name, &block) # Nos permite definir dentro de la clase un método de manera dinámica y en tiempo de ejecución | |
method_missing(name, *args, &block) # Nos permite capturar y manejar la excepción que se dispara cuando llamamos un método no definido dentro de una clase. | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment