Sha256: acfa98e23117290946fc52cfbcbfc2bc93ada7ae6f61e247b07b3c9947da0d60

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 Bytes

Contents

require_relative 'code_context'

module Reek
  module Context
    #
    # A context wrapper representing the root of an abstract syntax tree.
    #
    # @api private
    class RootContext < CodeContext
      def initialize(exp)
        super(nil, exp)
      end

      def type
        :root
      end

      def full_name
        ''
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reek-3.3.1 lib/reek/context/root_context.rb
reek-3.3.0 lib/reek/context/root_context.rb
reek-3.2.1 lib/reek/context/root_context.rb
reek-3.2 lib/reek/context/root_context.rb
reek-3.1 lib/reek/context/root_context.rb