class AnalDiffist::ReekProblem
Public Class Methods
new(smell)
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 26 def initialize smell @smell = smell end
Public Instance Methods
context()
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 34 def context @smell.location["context"] end
description(mode = :added)
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 46 def description(mode = :added) "Reek: #{type}" end
diff(other)
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 38 def diff other self if other.nil? end
score()
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 42 def score 2 end
type()
click to toggle source
# File lib/analdiffist/reek_parser.rb, line 30 def type @smell.subclass.to_s || '' end