lib/analyst/entities/class.rb in analyst-0.14.0 vs lib/analyst/entities/class.rb in analyst-0.14.1
- old
+ new
@@ -18,9 +18,13 @@
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
+ def all_methods
+ cmethods + imethods
+ end
+
def singleton_class_blocks
contents.select { |entity| entity.is_a? Analyst::Entities::SingletonClass }
end
private