Sha256: 1c8262669c521e4064f6b87a62634f9d85c26c34e6bfe39dce6fe56642e6f045

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 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.children.first)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-1.5.1 lib/reek/core/module_context.rb
reek-1.5.0 lib/reek/core/module_context.rb