Sha256: f1eacdf2394e94cd5d93072d6eee969c7adda538694c18c0ab46102aac93f8a9
Contents?: true
Size: 456 Bytes
Versions: 4
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true require_relative 'code_context' module Reek module Context # # A context wrapper for method calls found in a syntax tree. # class SendContext < CodeContext attr_reader :name def initialize(exp, name) @name = name super exp end def method_name_called_to_call return unless @name == :method local_nodes(:sym).map(&:name) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reek-6.1.4 | lib/reek/context/send_context.rb |
reek-6.1.3 | lib/reek/context/send_context.rb |
reek-6.1.2 | lib/reek/context/send_context.rb |
reek-6.1.1 | lib/reek/context/send_context.rb |