Skip to content

Instantly share code, notes, and snippets.

@barce
Created June 3, 2010 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barce/423497 to your computer and use it in GitHub Desktop.
Save barce/423497 to your computer and use it in GitHub Desktop.
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