Percent_expression.rb
# ⢀⡴⠊⢉⡟⢿ IRB v1.18.0 - Ruby 4.0.3
# ⣎⣀⣴⡋⡟⣻ "show_doc method" to view documentation
# ⣟⣼⣱⣽⣟⣾ ~/work/YS124/YS124
str='ruby'
#=> "ruby"
%w(a b c "#{str}")
#=> ["a", "b", "c", "\"\#{str}\""]
%W(a b c "#{str}")
#=> ["a", "b", "c", "\"ruby\""]
%i(a b c "#{str}")
#=> [:a, :b, :c, :"\"\#{str}\""]
%I(a b c "#{str}")
#=> [:a, :b, :c, :"\"ruby\""]
Ruby 4.0.3