lib/amp/support/support.rb
##
# Creates an opposite method based on a defined method:
# one that returns true if the base method returns false, and vice-versa.
#
# @param [Symbol] new_method The new method to define
# @param [Symbol] base_method the base method we use to define the opposite
#   method
Creates an opposite method based on a defined method:
one that returns true if the base method returns false, and vice-versa.
Creates an opposite method based on a defined method : one that returns true if the base method returns false and vice - versa .
def opposite_method(new_method, base_method)
    class_eval <<-EOF
def #{new_method}(*args, &block)
  not #{base_method}(*args, &block)
end
EOF
  end
def opposite_method ( new_method , base_method ) class_eval <<-EOF 
def  #{ new_method } (*args, &block)
  not  #{ base_method } (*args, &block)
end
 EOF end
Creates an opposite method based on a defined method:
one that returns true if the base method returns false, and vice-versa.
Creates an opposite method based on a defined method : one that returns true if the base method returns false and vice - versa .
new_method
<not_specific>
base_method
<not_specific>
<not_specific>
base_method the base method we use to define the opposite method
base_method the base method we use to define the opposite method