Method: YARD::CodeObjects::Proxy#class

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

#classClass

Returns the class name of the object the proxy is mimicking, if resolved. Otherwise returns Proxy.

Returns:

  • (Class)

    the resolved object’s class or Proxy


142
143
144
# File 'lib/yard/code_objects/proxy.rb', line 142

def class
  to_obj ? to_obj.class : Proxy
end