문제

What is the best way to get JRuby to run in 2.0 mode?

도움이 되었습니까?

해결책

For a specific script, you can use the --2.0 option:

jruby --2.0 -S rails s

For setting 2.0 as the default value, set JRUBY_OPTS:

export JRUBY_OPTS=--2.0

You can also set the value in ~/.jrubyrc:

compat.version=2.0
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top