Class: SOAP::Filter::FilterChain
- Defined in:
- lib/soap/filter/filterchain.rb
Instance Method Summary collapse
- #add(filter) ⇒ Object (also: #<<)
- #delete(filter) ⇒ Object
- #each ⇒ Object
- #include?(filter) ⇒ Boolean
-
#initialize ⇒ FilterChain
constructor
A new instance of FilterChain.
- #reverse_each ⇒ Object
Constructor Details
#initialize ⇒ FilterChain
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 |
#each ⇒ Object
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
43 44 45 |
# File 'lib/soap/filter/filterchain.rb', line 43 def include?(filter) @array.include?(filter) end |
#reverse_each ⇒ Object
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 |