Permalink
Browse files

jruby? helper

  • Loading branch information...
1 parent c686980 commit 963597600da468ae771ac3b0b3894c085d10e74c @drnic committed Nov 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 templates/helpers.erb
View
@@ -34,6 +34,11 @@ def multiple_choice(question, choices)
values[answer]
end
+# Is the current ruby jruby?
+def jruby?
+ @jruby ||= `ruby -v` =~ /^jruby/
+end
+
@current_scroll = nil
@configs = {}

0 comments on commit 9635976

Please sign in to comment.