Method: YARD::CodeObjects::Proxy#name

Defined in:
lib/yard/code_objects/proxy.rb

#name(prefix = false) ⇒ Symbol, String

The name of the object

Parameters:

  • prefix (Boolean) (defaults to: false)

    whether to show a prefix. Implement this in a subclass to define how the prefix is showed.

Returns:

  • (Symbol)

    if prefix is false, the symbolized name

  • (String)

    if prefix is true, prefix + the name as a String. This must be implemented by the subclass.



85
86
87
# File 'lib/yard/code_objects/proxy.rb', line 85

def name(prefix = false)
  prefix ? "#{@imethod && ISEP}#{@name}" : @name
end