class Array

Public Instance Methods

append(element) click to toggle source
# File app/lib/lib.rb, line 25
def append element
  self << element
end
each(&block) click to toggle source
# File app/lib/quick_each.rb, line 23
def each &block
  unless block_given?
    return QuickEach.new self
  else
    _original_each &block
  end
end
include_one?(array) click to toggle source
# File app/lib/lib.rb, line 19
def include_one? array
  (self & array).any?
end
select(&block) click to toggle source
# File app/lib/quick_each.rb, line 54
def select &block
  unless block_given?
    return QuickSelect.new self
  else
    _original_select &block
  end
end