1 2 3 4 5
if RUBY_ENGINE == 'jruby' JRuby::Util.load_ext("org.jruby.ext.bigdecimal.BigDecimalLibrary") else require 'bigdecimal.so' end