From 931818466545979b91f402c0f278ca81d2999e6a Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Tue, 20 Dec 2022 15:12:58 -0700 Subject: [PATCH] add JRuby example for SCRIPT transformation (#1971) Signed-off-by: Cody Cutrer Signed-off-by: Cody Cutrer --- addons/transformations.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/transformations.md b/addons/transformations.md index e10aca9b0..0651addde 100644 --- a/addons/transformations.md +++ b/addons/transformations.md @@ -105,6 +105,17 @@ The script-prefix is `js`. ::: +::: tab JRuby + +The script-prefix is `rb`. + +```ruby +input ||= nil # see https://github.com/jruby/jruby/issues/5876 +"String has #{input.length} characters" +``` + +::: + :::: Currently the `SCRIPT` transformation is not available as profile.