Module: U

Defined in:
lib/u.rb

Class Method Summary collapse

Class Method Details

.uni_array(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/u.rb', line 5

def uni_array *args
  uni_a = Array.new(*args)
  def uni_a.<<(v)
    super unless include?(v)
  end
  uni_a
end