Created
June 3, 2010 05:15
-
-
Save barce/423497 to your computer and use it in GitHub Desktop.
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
class Debate | |
attr_accessor :pros :cons | |
def resolve | |
if self.pros > self.cons | |
return 1 | |
return 0 | |
end | |
end | |
healthcare = Debate.new | |
healthcare.pros = hash_of_pros | |
healthcare.cons = hash_of_cons | |
healthcare.resolve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment