Method: Inch::CodeObject::Proxy.for

Defined in:
lib/inch/code_object/proxy.rb

.for(code_object) ⇒ CodeObject::Proxy::Base

Returns a Proxy object for the given code_object

Parameters:

  • code_object (YARD::Object::Base)

Returns:



12
13
14
15
# File 'lib/inch/code_object/proxy.rb', line 12

def for(code_object)
  attributes = Converter.to_hash(code_object)
  class_for(code_object).new(attributes)
end