Sha256: 9fadcef30ac515031b8a6e50708a10b8ad55c35ada78390ea41a71dcac7ae9aa

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

$:.unshift File.dirname(__FILE__)

require 'reek/checker'
require 'reek/smells/large_class'

module Reek

  class ClassChecker < Checker
    
    attr_accessor :description

    def initialize(report)
      super(report)
      @description = ''
    end

    def process_class(exp)  # :nodoc:
      @description = exp[1].to_s
      superclass = exp[2]
      Smells::LargeClass.check(@description, self)
      exp[3..-1].each { |defn| process(defn) } unless superclass == [:const, :Struct]
      s(exp)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-0.3.1 lib/reek/class_checker.rb