method
determine_superclass

1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupFactory
- 1.1.4 (0)
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
determine_superclass(opts)
protected
Hide source
# File lib/spec/example/example_group_factory.rb, line 51 def determine_superclass(opts) key = if opts[:type] opts[:type] elsif opts[:spec_path] =~ /spec(\\|\/)(#{@example_group_types.keys.join('|')})/ $2 == '' ? nil : $2.to_sym end get(key) end