method
add_callback
1.1.12 -
Show latest stable
- Class:
Spec::Runner::Configuration
add_callback(sym, *args, &proc)private
No documentation available.
# File lib/spec/runner/configuration.rb, line 151
def add_callback(sym, *args, &proc)
scope, options = Spec::Example.scope_and_options(*args)
example_group = Spec::Example::ExampleGroupFactory.get(get_type_from_options(options))
example_group.__send__(sym, scope, &proc)
end