lib/option.rb in option-0.1.1 vs lib/option.rb in option-0.2.0
- old
+ new
@@ -2,10 +2,13 @@
def or_nil
end
def ==(that)
- or_nil == that.or_nil
+ case that
+ when OptionClass then or_nil == that.or_nil
+ else or_nil == that
+ end
end
end
class SomeClass < OptionClass