Flowdock
method

subclass

Importance_1
RSpec latest stable (1.3.1) - 0 notes - Class: Class

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.4) is shown here.

These similar methods exist in 1.3.1:

subclass(base_name, &body) public

Creates a new subclass of self, with a name "under" our own name. Example:

  x = Foo::Bar.subclass('Zap'){}
  x.name # => Foo::Bar::Zap_1
  x.superclass.name # => Foo::Bar
Show source
Register or log in to add new notes.