Module: Gemmy::Tests::PatchTests::Error

Included in:
PatchedClass
Defined in:
lib/gemmy/tests/patch_test.rb

Instance Method Summary collapse

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.

Parameters:

  • msg (String) (defaults to: '')

Raises:

  • (RuntimeError)


22
23
24
# File 'lib/gemmy/tests/patch_test.rb', line 22

def error(msg='')
  raise(RuntimeError, msg)
end