-
-
Save tefanga/23b78fc5b1706634e648a8869624ea39 to your computer and use it in GitHub Desktop.
variable
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 PianoFamiliar | |
afinacion = 100 | |
def self.esta_afinado? | |
afinacion > 80 | |
end | |
def self.aumento_afinacion | |
afinacion += 5 | |
self.estable | |
end | |
def self.decre_afinacion | |
afinacion -= 1 | |
end | |
def self.estable | |
if afinacion > 100 | |
afinacion = 100 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment