Sha256: 93301735aff08e1780a0b7365b3113d34ecb15107309f50db7a0d116b0bc4439

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

module Reek
  # @api private
  module Context
    #
    # A context wrapper representing the root of an abstract syntax tree.
    #
    # @api private
    class RootContext
      def initialize
        @name = ''
      end

      def method_missing(_method, *_args)
        nil
      end

      def config_for(_)
        {}
      end

      def count_statements(_num)
        0
      end

      def full_name
        ''
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reek-3.0.4 lib/reek/context/root_context.rb
reek-3.0.3 lib/reek/context/root_context.rb
reek-3.0.2 lib/reek/context/root_context.rb
reek-3.0.1 lib/reek/context/root_context.rb
reek-3.0.0 lib/reek/context/root_context.rb