Method: Inch::Codebase::Objects#starting_with

Defined in:
lib/inch/codebase/objects.rb

#starting_with(partial_name) ⇒ Array<CodeObject::Proxy>

Returns all objects where the fullname starts_with the given partial_name

Examples:


find("Foo#")
# => returns the code object proxies for all instance methods of Foo

Parameters:

  • partial_name (String)

    partial name of an object

Returns:



60
61
62
# File 'lib/inch/codebase/objects.rb', line 60

def starting_with(partial_name)
  all.select { |o| o.fullname.start_with?(partial_name) }
end