free_mutant/spec/support/rb_bug.rb
Markus Schirp a0216cb6fa Bump ruby requirement to 2.1
* Use %i style symbol literal arrays
* Fix style
* Whitelist some preferred style
2015-05-31 21:20:54 +00:00

18 lines
269 B
Ruby

require 'ffi'
module RbBug
extend FFI::Library
ffi_lib 'ruby'
attach_function :rb_bug, %i[string varargs], :void
# Call the test bug
#
# @return [undefined]
#
# @api private
#
def self.call
rb_bug('%s', :string, 'test bug')
end
end # RbBug