Method: Oscillo::Enumerable#reject
- Defined in:
- lib/oscillo/enumerable.rb
#reject {|value| ... } ⇒ Signal
Returns a signal that changes only when the original signal changes and the block is false.
36 37 38 39 40 |
# File 'lib/oscillo/enumerable.rb', line 36 def reject(&block) self.class.new(self) do |v, s| s.abort if block.(v); v end end |