Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def contrary
- if @quantity.label == "particular"
- abort("There is no contrary for this type of propostion. Try subcontrary")
- end
- quality = @quality.opposite
- if @truthvalue
- truthvalue = !@truthvalue
- elsif !@truthvalue
- truthvalue = "unknown"
- end
- contrary = Proposition.new(@quantity, @subject, quality, @predicate, truthvalue)
- return contrary
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement