Skip to content

Instantly share code, notes, and snippets.

@tefanga
Created February 13, 2018 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tefanga/23b78fc5b1706634e648a8869624ea39 to your computer and use it in GitHub Desktop.
Save tefanga/23b78fc5b1706634e648a8869624ea39 to your computer and use it in GitHub Desktop.
variable
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