Class: Array

### Home Classes Methods

### In Files

- lib/http/cookie/ruby_compat.rb

### Parent

Object

### Methods

- #select!
- #sort_by!

### Files

- LICENSE.txt

### Class/Module Index

Quicksearch

- HTTP
- HTTP::Cookie
- HTTP::Cookie::Scanner
- HTTP::CookieJar
- HTTP::CookieJar::AbstractSaver
- HTTP::CookieJar::AbstractStore
- HTTP::CookieJar::CookiestxtSaver
- HTTP::CookieJar::HashStore
- HTTP::CookieJar::MozillaStore
- HTTP::CookieJar::YAMLSaver
- Array
- Hash
- String

No matching classes.

# Array

### Public Instance Methods

select!() click to toggle source

    # File lib/http/cookie/ruby_compat.rb, line 2
    def select! # :yield: x
      i = 0
      each_with_index { |x, j|
        yield x or next
        self[i] = x if i != j
        i += 1
      }
      return nil if i == size
      self[i..-1] = []
      self
    end

sort_by!() click to toggle source

    # File lib/http/cookie/ruby_compat.rb, line 14
    def sort_by!(&block) # :yield: x
      replace(sort_by(&block))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.