Method: Analyst::Entities::HasMethods#cmethods

Defined in:
lib/analyst/entities/mixins/has_methods.rb

#cmethodsObject



11
12
13
14
15
# File 'lib/analyst/entities/mixins/has_methods.rb', line 11

def cmethods
  some_methods = smethods.select { |method| method.target.type == :self }
  other_methods = singleton_class_blocks { |block| block.target.type == :self }.map(&:smethods).flatten
  some_methods + other_methods
end