Class: SOAP::Filter::FilterChain

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/filter/filterchain.rb

Instance Method Summary collapse

Constructor Details

#initializeFilterChain

Returns a new instance of FilterChain.


31
32
33
# File 'lib/soap/filter/filterchain.rb', line 31

def initialize
  @array = []
end

Instance Method Details

#add(filter) ⇒ Object Also known as: <<


35
36
37
# File 'lib/soap/filter/filterchain.rb', line 35

def add(filter)
  @array << filter
end

#delete(filter) ⇒ Object


40
41
42
# File 'lib/soap/filter/filterchain.rb', line 40

def delete(filter)
  @array.delete(filter)
end

#eachObject


19
20
21
22
23
# File 'lib/soap/filter/filterchain.rb', line 19

def each
  @array.each do |filter|
    yield filter
  end
end

#include?(filter) ⇒ Boolean

Returns:

  • (Boolean)

44
45
46
# File 'lib/soap/filter/filterchain.rb', line 44

def include?(filter)
  @array.include?(filter)
end

#reverse_eachObject


25
26
27
28
29
# File 'lib/soap/filter/filterchain.rb', line 25

def reverse_each
  @array.reverse_each do |filter|
    yield filter
  end
end