Closed recursive-madman closed 9 years ago
Given this input file:
class A def self.inherited(base) puts "#{base.name} inherits from #{name}" end end class B < A end
it can be verified, that the inherited method is actually called (as expected):
inherited
$ ruby try-inherit.rb B inherits from A
however, debride complains about it:
$ debride try-inherit.rb These methods MIGHT not be called: A inherited try-inherit.rb:2
Yup. That's how debride works. You didn't analyze any code that calls that method, so it reports it as potentially dead. Add it to a whitelist to remove it from the report.
Given this input file:
it can be verified, that the
inherited
method is actually called (as expected):however, debride complains about it: