Sha256: 0210fe2317b7be4f90aec8b3380d4a0a1a16d8afee372c095641f513d53d2247
Contents?: true
Size: 527 Bytes
Versions: 34
Compression:
Stored size: 527 Bytes
Contents
require 'reek/name' require 'reek/method_context' require 'reek/sexp_formatter' module Reek class SingletonMethodContext < MethodContext def initialize(outer, exp) super(outer, exp, false) @name = Name.new(exp[2]) @receiver = SexpFormatter.format(exp[1]) record_depends_on_self end def envious_receivers [] end def outer_name "#{@outer.outer_name}#{@receiver}.#{@name}/" end def to_s "#{@outer.outer_name}#{@receiver}.#{@name}" end end end
Version data entries
34 entries across 34 versions & 3 rubygems