{"product_id":"ruby-block-square-developer-tshirt","title":"{|x| x _ x} Developer T-Shirt","description":"\u003cp\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cmeta charset=\"utf-8\"\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{|x| x * x}\u003c\/code\u003e is a Ruby block: the \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|x|\u003c\/code\u003e names the parameter, and the body squares it. Hand it to a method like \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]\"\u003emap\u003c\/code\u003e and it runs once per element — \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,2,3].map { |x| x * x }\u003c\/code\u003e gives \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,4,9]\u003c\/code\u003e. The anonymous function Ruby threads through nearly everything it does, written inline at the point you need it.\u003cbr\u003e\u003c\/p\u003e","brand":"Slash Star","offers":[{"title":"Black Heather \/ XS","offer_id":58322137776509,"sku":"3405419_9575","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ S","offer_id":58322137809277,"sku":"3405419_8923","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ M","offer_id":58322137842045,"sku":"3405419_8924","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ L","offer_id":58322137874813,"sku":"3405419_8925","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ XL","offer_id":58322137907581,"sku":"3405419_8926","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"Black Heather \/ 2XL","offer_id":58322137940349,"sku":"3405419_8927","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ XS","offer_id":58322137973117,"sku":"3405419_9526","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ S","offer_id":58322138005885,"sku":"3405419_4011","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ M","offer_id":58322138038653,"sku":"3405419_4012","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ L","offer_id":58322138071421,"sku":"3405419_4013","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ XL","offer_id":58322138104189,"sku":"3405419_4014","price":25.0,"currency_code":"GBP","in_stock":true},{"title":"White \/ 2XL","offer_id":58322138136957,"sku":"3405419_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-black-heather-front-6a3e37d21821b.jpg?v=1782462432","url":"https:\/\/slashstar.store\/products\/ruby-block-square-developer-tshirt","provider":"Slash Star","version":"1.0","type":"link"}