๐ฟ What?
- ๐ฑ
%wreturn an splited array from a input string by space.
irb> %w(I am from Vietnam)
#=> ["i", "am", "from", "Vietnam"]- ๐ฑ
%Wis similar%wbut allows receive interpolation value.
irb> country = "Vietnam"
irb> %w(I am from #{country})
#=> ["i", "am", "from", "\#{country}"]
irb> %W(I am from #{country})
#=> ["i", "am", "from", "Vietnam"]- ๐ฑ Similar with %q, %Q, %i, %I, โฆ