opal/corelib/kernel/format.rb in opal-1.7.4 vs opal/corelib/kernel/format.rb in opal-1.8.0.alpha1
- old
+ new
@@ -1,5 +1,6 @@
# helpers: coerce_to
+# backtick_javascript: true
module ::Kernel
def format(format_string, *args)
if args.length == 1 && args[0].respond_to?(:to_ary)
ary = ::Opal.coerce_to?(args[0], ::Array, :to_ary)