Class: IsThisUsed::PotentialCruft

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/is_this_used/models/potential_cruft.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



18
19
20
21
22
# File 'lib/is_this_used/models/potential_cruft.rb', line 18

def ==(other)
  other.owner_name == owner_name &&
    other.method_name == method_name &&
    other.method_type == method_type
end

#still_exists?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/is_this_used/models/potential_cruft.rb', line 10

def still_exists?
  class_still_exists? && method_still_exists?
end

#still_tracked?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/is_this_used/models/potential_cruft.rb', line 14

def still_tracked?
  IsThisUsed::Registry.instance.include?(self)
end