class Module

module method

Module.inherit parent, *methods

Called in the context of a class or module, inherit establishes a secondary inheritance path via parent. The arguments should be strings or symbols; parent can refer to an attribute or method with no arguments. The listed methods are given definitions in the base class or module which simply pass the message, along with any arguments and an optional block, to the parent, or throw an InheritError if there is none.