Sha256: 2daaebecfc0aa3ab2e84a6f3703af95ec72c2609452042803e0d388613a00b86

Contents?: true

Size: 432 Bytes

Versions: 29

Compression:

Stored size: 432 Bytes

Contents

module Inch
  module API
    # Filters a codebase's objects based on given options
    class Filter
      attr_reader :codebase
      attr_reader :objects
      attr_reader :grade_lists

      def initialize(codebase, options)
        @codebase = codebase
        codebase.objects.filter! Options::Filter.new(options)
        @objects = codebase.objects.to_a
        @grade_lists = @codebase.grade_lists
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
inch-0.6.0 lib/inch/api/filter.rb
inch-0.6.0.rc6 lib/inch/api/filter.rb
inch-0.6.0.rc5 lib/inch/api/filter.rb
inch-0.6.0.rc4 lib/inch/api/filter.rb
inch-0.6.0.rc3 lib/inch/api/filter.rb
inch-0.6.0.rc2 lib/inch/api/filter.rb
inch-0.6.0.rc1 lib/inch/api/filter.rb
inch-0.5.10 lib/inch/api/filter.rb
inch-0.5.9 lib/inch/api/filter.rb
inch-0.5.8 lib/inch/api/filter.rb
inch-0.5.7 lib/inch/api/filter.rb
inch-0.5.6 lib/inch/api/filter.rb
inch-0.5.5 lib/inch/api/filter.rb
inch-0.5.4 lib/inch/api/filter.rb
inch-0.5.3 lib/inch/api/filter.rb
inch-0.5.2 lib/inch/api/filter.rb
inch-0.5.1 lib/inch/api/filter.rb
inch-0.5.0 lib/inch/api/filter.rb
inch-0.5.0.rc11 lib/inch/api/filter.rb
inch-0.5.0.rc10 lib/inch/api/filter.rb