I want to use the variable insite% w {}, but this only generates a string.
I tried
a="hello", b="world" %w{ab}
But this display ["a", "b"] I want to display ["hello", "world"]
["a", "b"]
If you want to use variables, you can use interpolation and the %W option
%W
a = "hello" b = "world" pp %W{#{a} #{b} this is normal text} #=> ["hello", "world", "this", "is", "normal", "text"]
Source: https://habr.com/ru/post/1482326/More articles:Setting connection time In RoboSpice android request - androidWhy does Phantom.js not work with my Backbone application? - javascriptIncludes and returns - include__stack_size__, __stack_end__ characters in 'C' - cIt is necessary to match the appearance of the template only once in the file - bashHow to delete created element in JavaScript? - javascriptZIP - one large file in many calls using PHP PCL Zip - phpJavascript animating multiple divs in a sequence - javascriptFocusing on changing the input field and orientation changes the zoom level on iOS 6 Safari - safariJackson Custom Deserialize - javaAll Articles