http://ujihisa.nowa.jp/entry/62365f7d52
どうせならここまでしたい感じ
module OOnize def not; !self end def and(other) self && other end def or(other) self || other end end class TrueClass include OOnize end class FalseClass include OOnize end
before
a = 3 b = 4 if a.odd? && b.odd?.not p 'OK' end
after
a = 3 b = 4 if a.odd?.and b.odd?.not p 'OK' end
OOnizeという名前がcool.notですね