Class: Inch::Codebase::ObjectsFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/inch/codebase/objects_filter.rb

Overview

ObjectsFilter can be used to filter a list of objects by a given set of given options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list, options) ⇒ ObjectsFilter

Returns a new instance of ObjectsFilter

Parameters:



11
12
13
14
15
# File 'lib/inch/codebase/objects_filter.rb', line 11

def initialize(list, options)
  @list = list
  @options = options
  filter
end

Instance Attribute Details

#optionsAPI::Options::Base (readonly)

Returns the filter options

Returns:



7
8
9
# File 'lib/inch/codebase/objects_filter.rb', line 7

def options
  @options
end

Instance Method Details

#objectsArray<CodeObject::Proxy>

Returns the filtered list

Returns:



18
19
20
# File 'lib/inch/codebase/objects_filter.rb', line 18

def objects
  @list
end