Method: AutoTypeDoc.method_name_with_owner

Defined in:
lib/auto_type_doc.rb

.method_name_with_owner(method) ⇒ String

Parameters:

  • method (Method)

Returns:

  • (String)


51
52
53
# File 'lib/auto_type_doc.rb', line 51

def method_name_with_owner(method)
  method.to_s[/^#<Method:\s(.+)>$/, 1].sub(/^.+\((.+)\)/, '\1')
end