Created
October 13, 2011 15:44
-
-
Save mattdenner/1284574 to your computer and use it in GitHub Desktop.
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
| def needed?(a, b) | |
| return false if a.nil? | |
| unless b.nil? | |
| unless b.t2? | |
| if a.t1? | |
| return true | |
| end | |
| end | |
| else | |
| if a.t1? | |
| return true | |
| end | |
| end | |
| false | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment