lib/hagma/events/summary.rb
# search method_info objects from the class
# @param klass [Class|Module] class or module
# @param type [Symbol] :singleton or :instance or nil(all)
# @return [Hash] hash keys are :instance or :singleton or both and its value is MethodStat
search method_info objects from the class
search method_info objects from the class
def lookup_methods(klass, type = nil)
        types = type.nil? ? %i[instance singleton] : type
        types.map do |t|
          [t, method_stats(t == :singleton ? klass.singleton_class : klass)]
        end.to_h
      end
def lookup_methods ( klass , type = nil ) types = type . nil? ? %i[ instance singleton ] : type types . map do | t | [ t , method_stats ( t == :singleton ? klass . singleton_class : klass ) ] end . to_h end
search method_info objects from the class
search method_info objects from the class
hash keys are :instance or :singleton or both and its value is MethodStat
hash keys are : instance or : singleton or both and its value is MethodStat
Hash
klass
class or module
class or module
type
:singleton or :instance or nil(all)
: singleton or : instance or nil ( all )