Sha256: 4950049e898975f4096184df4bc31f3ffdf974c95d73ed6f0cb7f7b1ed840b5d

Contents?: true

Size: 306 Bytes

Versions: 11

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

require_relative 'module_context'

module Reek
  module Context
    #
    # A context wrapper for any refinement blocks found in a syntax tree.
    #
    class RefinementContext < ModuleContext
      def full_name
        exp.call.args.first.name
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
reek-6.3.0 lib/reek/context/refinement_context.rb
reek-6.2.0 lib/reek/context/refinement_context.rb
reek-6.1.4 lib/reek/context/refinement_context.rb
reek-6.1.3 lib/reek/context/refinement_context.rb
reek-6.1.2 lib/reek/context/refinement_context.rb
reek-6.1.1 lib/reek/context/refinement_context.rb
reek-6.1.0 lib/reek/context/refinement_context.rb
reek-6.0.6 lib/reek/context/refinement_context.rb
reek-6.0.5 lib/reek/context/refinement_context.rb
reek-6.0.4 lib/reek/context/refinement_context.rb
reek-6.0.3 lib/reek/context/refinement_context.rb