I’m looking at the documentation for Ruby. I’m confused between using %w() or %W() (Later W is upcase). What is the difference between both? Can you point me to some documentation?
I’m looking at the documentation for Ruby. I’m confused between using %w() or %W()
Share
When capitalized, the array is constructed from strings that are interpolated, as would happen in a double-quoted string; when lowercased, it is constructed from strings that are not interpolated, as would happen in a single-quoted string. For example: