Table B.1 is a listing of a few more functions, operators, and other items. The Python entity is in the left column; in the right column you will find the rough Ruby equivalent and/or some pertinent comments.
Table B.1. Functions, Operators, and Other Items
Python
Ruby
__bases__
ancestors
__getattr__
method_missing
__getitem__, __getslice__
[]
__import__
load, require (redefinable)
__setitem__
[]=
__class__
class, type
__methods__, __members__, __dict__
(various methods)
apply(f,args)
Functions are not objects; refer to proc objects: proc.call(args) or obj.send(:method,args)