Sha256: 9a8176bd2a2b82db704c5bbeda879e1dcb9bc166f10c933fc40db41d365c8a1c

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

require 'reek/core/code_context'
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

1 entries across 1 versions & 1 rubygems

Version Path
reek-1.4.0 lib/reek/core/module_context.rb