Created
September 19, 2016 20:08
-
-
Save roooodcastro/c3b0754fb9603c32d24cb69c9386094f to your computer and use it in GitHub Desktop.
Boolean Oveload
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
def anosemestre? | |
!anosemestre.blank? ? true : false | |
end | |
def cargahoraria? | |
!numhorasdisc.blank? ? true : false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment