Module: Gemmy::Tests::PatchTests::Error
- Included in:
- PatchedClass
- Defined in:
- lib/gemmy/tests/patch_test.rb
Instance Method Summary collapse
-
#error(msg = '') ⇒ Object
Allow using raise with one argument only raises RuntimeError.
Instance Method Details
#error(msg = '') ⇒ Object
Allow using raise with one argument only raises RuntimeError
this is included in the global patches, but the test suite doesn’t depend on it.
22 23 24 |
# File 'lib/gemmy/tests/patch_test.rb', line 22 def error(msg='') raise(RuntimeError, msg) end |