Sha256: be6648e53e46c9be7a1112532b0befb0efa8cea0dd37becad72141835cab7f5c

Contents?: true

Size: 428 Bytes

Versions: 37

Compression:

Stored size: 428 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(options)
        @objects = codebase.objects.to_a
        @grade_lists = @codebase.grade_lists
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
inch-0.4.7 lib/inch/api/filter.rb
inch-0.5.0.rc3 lib/inch/api/filter.rb
inch-0.5.0.rc2 lib/inch/api/filter.rb
inch-0.5.0.rc1 lib/inch/api/filter.rb
inch-0.4.6 lib/inch/api/filter.rb
inch-0.4.5 lib/inch/api/filter.rb
inch-0.4.4 lib/inch/api/filter.rb
inch-0.4.4.rc4 lib/inch/api/filter.rb
inch-0.4.4.rc3 lib/inch/api/filter.rb
inch-0.4.4.rc2 lib/inch/api/filter.rb
inch-0.4.4.rc1 lib/inch/api/filter.rb
inch-0.4.3 lib/inch/api/filter.rb
inch-0.4.3.rc2 lib/inch/api/filter.rb
inch-0.4.3.rc1 lib/inch/api/filter.rb
inch-0.4.2 lib/inch/api/filter.rb
inch-0.4.1 lib/inch/api/filter.rb
inch-0.4.0 lib/inch/api/filter.rb
inch-0.4.0.rc3 lib/inch/api/filter.rb
inch-0.4.0.rc2 lib/inch/api/filter.rb
inch-0.4.0.rc1 lib/inch/api/filter.rb