Sha256: 3a5134de777db7de984e2de3dc345d5cd3302337738e43909b9dafb7770042ef

Contents?: true

Size: 675 Bytes

Versions: 6

Compression:

Stored size: 675 Bytes

Contents

require 'rubycritic/analysers/helpers/methods_counter'
require 'rubycritic/analysers/helpers/modules_locator'
require 'rubycritic/colorize'

module Rubycritic
  module Analyser
    class Attributes
      include Colorize
      def initialize(analysed_modules)
        @analysed_modules = analysed_modules
      end

      def run
        @analysed_modules.each do |analysed_module|
          analysed_module.methods_count = MethodsCounter.new(analysed_module).count
          analysed_module.name = ModulesLocator.new(analysed_module).first_name
          print green '.'
        end
        puts ''
      end

      def to_s
        'attributes'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubycritic-2.9.2 lib/rubycritic/analysers/attributes.rb
rubycritic-2.9.1 lib/rubycritic/analysers/attributes.rb
rubycritic-2.9.0 lib/rubycritic/analysers/attributes.rb
rubycritic-2.8.0 lib/rubycritic/analysers/attributes.rb
rubycritic-2.7.1 lib/rubycritic/analysers/attributes.rb
rubycritic-2.7.0 lib/rubycritic/analysers/attributes.rb