Class: Object (Ruby 2.7.2)
Description: Class : Object - Ruby 2.7.2

### Home Classes Methods

### In Files

- timeout.rb

### Parent

BasicObject

### Namespace

- CLASS Object::TimeoutError

### Methods

- #timeout

### Class/Module Index

Quicksearch

- Object
- Object::TimeoutError
- Timeout
- Timeout::Error
- Timeout::TimeoutError

No matching classes.

# Object

### Constants

TimeoutError

  Raised by Timeout.timeout when the block times out.

### Public Instance Methods

timeout(*args, &block) click to toggle source

                   # File timeout.rb, line 122
    def timeout(*args, &block)
      warn "Object##{__method__} is deprecated, use Timeout.timeout instead.", uplevel: 1
      Timeout.timeout(*args, &block)
    end