Sha256: 305dac53da4a7524399793cba66888bec108200040509b16a05b14dac208513b

Contents?: true

Size: 409 Bytes

Versions: 18

Compression:

Stored size: 409 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

18 entries across 18 versions & 1 rubygems

Version Path
reek-2.2.1 lib/reek/core/stop_context.rb
reek-2.2.0 lib/reek/core/stop_context.rb
reek-2.1.0 lib/reek/core/stop_context.rb
reek-2.0.4 lib/reek/core/stop_context.rb
reek-2.0.3 lib/reek/core/stop_context.rb
reek-2.0.2 lib/reek/core/stop_context.rb
reek-2.0.1 lib/reek/core/stop_context.rb
reek-2.0.0 lib/reek/core/stop_context.rb
reek-1.6.6 lib/reek/core/stop_context.rb
reek-1.6.5 lib/reek/core/stop_context.rb
reek-1.6.4 lib/reek/core/stop_context.rb
reek-1.6.3 lib/reek/core/stop_context.rb
reek-1.6.2 lib/reek/core/stop_context.rb
reek-1.6.1 lib/reek/core/stop_context.rb
reek-1.6.0 lib/reek/core/stop_context.rb
reek-1.5.1 lib/reek/core/stop_context.rb
reek-1.5.0 lib/reek/core/stop_context.rb
reek-1.4.0 lib/reek/core/stop_context.rb