respond not_*? missing methods
sauloefo opened this issue · 0 comments
sauloefo commented
I want to any object be able to respond to any missing method called not_.*?
as long as a method called .*?
exists.
Example:
not_nil?
as long as nil?
method exists;
not_present?
as long as present?
method exists;
not_overdue?
as long as overdue?
method exists;
Why?
I prefer to read this:
if not_overdue? ...
# The code clearly tells me
than this:
if !overdue? ...
# I have to "compile" the code in my mind to understand what that ! means