Module: Kernel
- Defined in:
- lib/kernel.rb
Overview
Extension of the global Kernel module to provide the Fix method. This allows Fix to be called from anywhere in the application without explicit namespace qualification.
Instance Method Summary collapse
-
#Fix(name = nil) { ... } ⇒ Fix::Set
Defines a new test specification or creates an anonymous specification set.
Instance Method Details
#Fix(name = nil) { ... } ⇒ Fix::Set
Defines a new test specification or creates an anonymous specification set. When a name is provided, the specification is registered globally and can be referenced later using Fix. Anonymous specifications are executed immediately and cannot be referenced later.
44 45 46 |
# File 'lib/kernel.rb', line 44 def Fix(name = nil, &) ::Fix::Builder.build(name, &) end |