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 given a set of given options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list, options) ⇒ ObjectsFilter

Returns a new instance of ObjectsFilter.



8
9
10
11
12
# File 'lib/inch/codebase/objects_filter.rb', line 8

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#objectsObject



14
15
16
# File 'lib/inch/codebase/objects_filter.rb', line 14

def objects
  @list
end