Class: PipeEnvyArray
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PipeEnvyArray
- Defined in:
- lib/pipe_envy.rb
Instance Method Summary collapse
-
#union(other_array = []) ⇒ Object
Original Array pipe operator method logic SEE: ruby-doc.org/core-2.4.1/Array.html#method-i-7C.
Instance Method Details
#union(other_array = []) ⇒ Object
Original Array pipe operator method logic SEE: ruby-doc.org/core-2.4.1/Array.html#method-i-7C
31 32 33 |
# File 'lib/pipe_envy.rb', line 31 def union(other_array=[]) (self + (other_array - self)).uniq end |