Sha256: 6d754a99bb7ed17ec76e27bfed558e942686e8a4499dae1e1702d6e988ee507a

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

require 'reek/core/code_context'
require 'reek/core/code_parser'
require 'reek/core/sniffer'
require 'reek/source/sexp_formatter'

module Reek
  module Core

    #
    # A context wrapper for any module found in a syntax tree.
    #
    class ModuleContext < CodeContext

      def initialize(outer, exp)
        super(outer, exp)
        @name = Source::SexpFormatter.format(exp[1])
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-1.3.8 lib/reek/core/module_context.rb
reek-1.3.7 lib/reek/core/module_context.rb