Class: Crowbar::Client::Filter::Array

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/filter/array.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #result

Constructor Details

This class inherits a constructor from Crowbar::Client::Filter::Base

Instance Method Details

#processObject



21
22
23
24
25
# File 'lib/crowbar/client/filter/array.rb', line 21

def process
  options[:values].select do |row|
    row.include? options[:filter]
  end
end