lib/ruote/util/misc.rb in ruote-2.1.7 vs lib/ruote/util/misc.rb in ruote-2.1.8
- old
+ new
@@ -25,10 +25,14 @@
module Ruote
# Will be set to true if the Ruby runtime is on Windows
#
- WIN = RUBY_PLATFORM.match(/mswin|mingw/) != nil
+ WIN = (RUBY_PLATFORM.match(/mswin|mingw/) != nil)
+
+ # Will be set to true if the Ruby runtime is JRuby
+ #
+ JAVA = (RUBY_PLATFORM.match(/java/) != nil)
# Prints the current call stack to stdout
#
def self.p_caller (*msg)