Class: RubyExts::UniqueArray
- Defined in:
- lib/rubyexts/unique_array.rb
Instance Method Summary collapse
- #push(*args) ⇒ Object (also: #<<)
Methods inherited from Array
Instance Method Details
#push(*args) ⇒ Object Also known as: <<
7 8 9 10 11 12 13 |
# File 'lib/rubyexts/unique_array.rb', line 7 def push(*args) args.each do |arg| unless self.include?(arg) super(arg) end end end |