Method: List#push
- Defined in:
- lib/methodic.rb
#push(*value) ⇒ Object
override of push for uniqness and flatten return
15 16 17 18 19 20 |
# File 'lib/methodic.rb', line 15 def push(*value) super(value) self.flatten! self.uniq! return self end |