Module: Monkey::Ext::Array

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

Instance Method Summary collapse

Instance Method Details

#[email protected]Object


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

def [email protected]
  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