Sha256: 32e5ff0131360a4fb597834fcfda448eb392d0e65aed9ae87723465bd403f35f

Contents?: true

Size: 846 Bytes

Versions: 6

Compression:

Stored size: 846 Bytes

Contents

module Reek
  class StopContext
    
    def initialize
      @refs = ObjectRefs.new
      @myself = Object
    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 record_call_to(exp)
      nil
    end

    def record_method(name)
    end

    def record_parameter(sym)
    end

    def record_instance_variable(sym)
    end

    def record_local_variable(sym)
    end
    
    def outer_name
      ''
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
kevinrutherford-reek-0.3.1.4 lib/reek/stop_context.rb
kevinrutherford-reek-0.3.1.5 lib/reek/stop_context.rb
kevinrutherford-reek-0.3.1.6 lib/reek/stop_context.rb
kevinrutherford-reek-1.0.0 lib/reek/stop_context.rb
kevinrutherford-reek-1.0.1 lib/reek/stop_context.rb
reek-1.0.0 lib/reek/stop_context.rb