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.3.4.rc1 lib/inch/api/filter.rb
inch-0.3.3 lib/inch/api/filter.rb
inch-0.3.3.rc1 lib/inch/api/filter.rb
inch-0.3.2 lib/inch/api/filter.rb
inch-0.3.2.rc2 lib/inch/api/filter.rb
inch-0.3.2.rc1 lib/inch/api/filter.rb
inch-0.3.1 lib/inch/api/filter.rb
inch-0.3.1.rc6 lib/inch/api/filter.rb
inch-0.3.1.rc5 lib/inch/api/filter.rb
inch-0.3.1.rc4 lib/inch/api/filter.rb
inch-0.3.1.rc3 lib/inch/api/filter.rb
inch-0.3.1.rc2 lib/inch/api/filter.rb
inch-0.3.1.rc1 lib/inch/api/filter.rb
inch-0.3.0 lib/inch/api/filter.rb
inch-0.3.0.rc3 lib/inch/api/filter.rb
inch-0.3.0.rc2 lib/inch/api/filter.rb
inch-0.3.0.rc1 lib/inch/api/filter.rb