Method: Contracts::Support.method_name

Defined in:
lib/contracts/support.rb

.method_name(method) ⇒ Object



17
18
19
# File 'lib/contracts/support.rb', line 17

def method_name(method)
  method.is_a?(Proc) ? "Proc" : method.name
end