Sha256: c449c50f4b1d483e4eb9bc590639150e38730cd7ca058c4a17c06ccad338d225

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

module Reek
  module Core

    #
    # A context wrapper representing the root of an abstract syntax tree.
    #
    class StopContext

      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

2 entries across 2 versions & 1 rubygems

Version Path
reek-1.3.8 lib/reek/core/stop_context.rb
reek-1.3.7 lib/reek/core/stop_context.rb