Skip to content

Instantly share code, notes, and snippets.

@roooodcastro
Created September 19, 2016 20:08
Show Gist options
  • Save roooodcastro/c3b0754fb9603c32d24cb69c9386094f to your computer and use it in GitHub Desktop.
Save roooodcastro/c3b0754fb9603c32d24cb69c9386094f to your computer and use it in GitHub Desktop.
Boolean Oveload
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