Sha256: 153e7d227aa3d3cf0bb67cb269fa835517ff7e5d91f8fa78ee8b61fbaea61a33

Contents?: true

Size: 685 Bytes

Versions: 27

Compression:

Stored size: 685 Bytes

Contents

module Reek
  class StopContext
    
    def initialize
      @refs = ObjectRefs.new
      @myself = Object
    end
    def method_missing(method, *args)
      nil
    end


    def count_statements(num)
      0
    end

    def find_module(name)
      sym = name.to_s
      @myself.const_defined?(sym) ? @myself.const_get(sym) : nil
    end

    def has_parameter(sym)
      false
    end
    
    def inside_a_block?
      false
    end

    def is_overriding_method?(name)
      false
    end
    
    def num_statements
      0
    end
    
    def refs
      @refs
    end
    
    def record_depends_on_self
      false
    end
    
    def outer_name
      ''
    end
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
kevinrutherford-reek-1.1.1 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.2.1 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.2 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.1 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.10 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.11 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.12 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.13 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.14 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.15 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.16 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.2 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.3 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.4 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.5 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.6 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.7 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.8 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3.9 lib/reek/stop_context.rb
kevinrutherford-reek-1.1.3 lib/reek/stop_context.rb