Method: Primer::Yard::RegistryEntry#public_methods

Defined in:
lib/primer/yard/registry.rb

#public_methodsObject

[View source]

61
62
63
64
65
66
67
# File 'lib/primer/yard/registry.rb', line 61

def public_methods
  # Returns: only public methods that belong to this class (i.e. no inherited methods)
  # excluding the constructor
  @public_methods ||= docs.meths.reject do |mtd|
    mtd.tag(:private) || mtd.name == :initialize
  end
end