method
create_example_group_subclass
1.1.12 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
create_example_group_subclass(*args, &example_group_block)
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