Created
April 2, 2013 07:30
-
-
Save adamdilek/5290535 to your computer and use it in GitHub Desktop.
Absence validator example
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
| super_hero = SuperHero.new | |
| super_hero.valid? | |
| # => true | |
| super_hero.secret_identity = 'Hal Jordan' | |
| super_hero.valid? | |
| # => false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment