Sha256: a9e7c7a73aa3d3ce23beb0213e016767d1b0a7b5997ed48d51d1d91a7d61a839

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

require_relative 'code_context'

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

      def type
        :root
      end

      def full_name
        ''
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
reek-3.8.3 lib/reek/context/root_context.rb
reek-3.8.2 lib/reek/context/root_context.rb
reek-3.8.1 lib/reek/context/root_context.rb
reek-3.8.0 lib/reek/context/root_context.rb
reek-3.7.1 lib/reek/context/root_context.rb
reek-3.7.0 lib/reek/context/root_context.rb
reek-3.6.1 lib/reek/context/root_context.rb
reek-3.6.0 lib/reek/context/root_context.rb
reek-3.5.0 lib/reek/context/root_context.rb
reek-3.4.1 lib/reek/context/root_context.rb
reek-3.4.0 lib/reek/context/root_context.rb