{"product_id":"ruby-symbol-to-proc-developer-tshirt","title":"(1..10).map(\u0026:to_s) Developer T-Shirt","description":"\u003cp class=\"font-claude-response-body break-words whitespace-normal\"\u003e\u003ccode class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\"\u003e(1..10).map(\u0026amp;:to_s)\u003c\/code\u003e turns a range into an array of strings in a single expression. No loop, no block body — \u003ccode class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\"\u003e\u0026amp;:to_s\u003c\/code\u003e passes the method itself as the operation.\u003c\/p\u003e\n\u003cp class=\"font-claude-response-body break-words whitespace-normal\"\u003eIt's a small example of how Ruby reads: iteration, blocks, and symbol-to-proc shorthand condensed into one line that does exactly what it says. The kind of thing other languages take a loop and a few lines to express.\u003c\/p\u003e","brand":"Slash Star","offers":[{"title":"Black Heather \/ XS","offer_id":58329779503485,"sku":"5516686_9575","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ S","offer_id":58329779536253,"sku":"5516686_8923","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ M","offer_id":58329779569021,"sku":"5516686_8924","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ L","offer_id":58329779601789,"sku":"5516686_8925","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ XL","offer_id":58329779634557,"sku":"5516686_8926","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ 2XL","offer_id":58329779667325,"sku":"5516686_8927","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ XS","offer_id":58329779700093,"sku":"5516686_9526","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ S","offer_id":58329779732861,"sku":"5516686_4011","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ M","offer_id":58329779765629,"sku":"5516686_4012","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ L","offer_id":58329779798397,"sku":"5516686_4013","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ XL","offer_id":58329779831165,"sku":"5516686_4014","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ 2XL","offer_id":58329779863933,"sku":"5516686_4015","price":25.0,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0925\/2860\/7613\/files\/unisex-staple-t-shirt-white-right-front-6a40efa6a423d.jpg?v=1782640560","url":"https:\/\/slashstar.store\/products\/ruby-symbol-to-proc-developer-tshirt","provider":"Slash Star","version":"1.0","type":"link"}