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



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

def initialize
  @array = []
end

Instance Method Details

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



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

def add(filter)
  @array << filter
end

#delete(filter) ⇒ Object



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

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

#eachObject



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

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

#include?(filter) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#reverse_eachObject



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

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