I notice one line code in spree library:
label_with_first_letters_capitalized = t(options[:label]).gsub(/\b\w/)#{$&.upcase}
could someone tell me what does "$&" mean ? thanks!
I notice one line code in spree library:
label_with_first_letters_capitalized = t(options[:label]).gsub(/\b\w/)#{$&.upcase}
could someone tell me what does "$&" mean ? thanks!