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.
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 |
#each ⇒ Object
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
44 45 46 |
# File 'lib/soap/filter/filterchain.rb', line 44 def include?(filter) @array.include?(filter) end |
#reverse_each ⇒ Object
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 |