Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def contrary
  2. if @quantity.label == "particular"
  3. abort("There is no contrary for this type of propostion. Try subcontrary")
  4. end
  5. quality = @quality.opposite
  6.  
  7. if @truthvalue
  8. truthvalue = !@truthvalue
  9. elsif !@truthvalue
  10. truthvalue = "unknown"
  11. end
  12.  
  13. contrary = Proposition.new(@quantity, @subject, quality, @predicate, truthvalue)
  14. return contrary
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement