Module: OpenapiRuby::Generator::AutorunSuppressor::MinitestSilencer
- Defined in:
- lib/openapi_ruby/generator/autorun_suppressor.rb
Instance Method Summary collapse
-
#autorun ⇒ Object
Swallow the
at_exitregistration. -
#run ⇒ Object
Belt and braces: if something registered the hook before this module was installed, the hook still fires but finds nothing to do.
Instance Method Details
#autorun ⇒ Object
Swallow the at_exit registration. Defined as a no-op rather than
setting @@installed_at_exit so this doesn't depend on Minitest's
internals.
44 45 46 |
# File 'lib/openapi_ruby/generator/autorun_suppressor.rb', line 44 def autorun nil end |
#run ⇒ Object
Belt and braces: if something registered the hook before this module was installed, the hook still fires but finds nothing to do.
50 51 52 |
# File 'lib/openapi_ruby/generator/autorun_suppressor.rb', line 50 def run(*) true end |