by ldubinets · 13y ago · 0 comments
return nil unless other.is_a?(self.class) while true do
puts 'lol'
end unless true
but seriously, I like postconditions. they're also handy for encoding intent, if you have a pattern of the left-hand-side being the primary logic flow. other.is_a?(self.class) || return
if you prefer that.