Sha256: 72a215c56473f20a945e700804edde23c199c2db7647b63990280e9e193c3f00
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 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) @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.2.5 | lib/reek/singleton_method_context.rb |
reek-1.2.4 | lib/reek/singleton_method_context.rb |