Module: Monkey::Ext::Array

Defined in:
lib/monkey/ext/array.rb

Instance Method Summary collapse

Instance Method Details

#+@Object



14
15
16
# File 'lib/monkey/ext/array.rb', line 14

def +@
  Set.new self
end

#select!(&block) ⇒ Object



9
10
11
12
# File 'lib/monkey/ext/array.rb', line 9

def select!(&block)
  return :to_enum if block.nil? and respond_to? :to_enum
  replace select(&block)
end