{"author_name":"sonota88","author_url":"https://blog.hatena.ne.jp/sonota88/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F20111202%2F1322843590\" title=\" Ruby: \u691c\u51fa\u30d5\u30e9\u30b0\u3092map+any\u3067\u7f6e\u304d\u63db\u3048\u308b - memo486\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","provider_url":"https://hatena.blog","blog_url":"https://memo88.hatenablog.com/","image_url":null,"title":" Ruby: \u691c\u51fa\u30d5\u30e9\u30b0\u3092map+any\u3067\u7f6e\u304d\u63db\u3048\u308b","height":"190","description":"# each + \u691c\u51fa\u30d5\u30e9\u30b0 def exclude_by_domain(exclude_url_heads, urls) urls.reject{ |url| match = false exclude_url_heads.each{ |head_re| match = true if head_re =~ url } match } end # map + any def exclude_by_domain_map_and_any(exclude_url_heads, urls) urls.reject{ |url| exclude_url_heads.map{ |head_re| hea\u2026","categories":["Ruby"],"blog_title":"memo486","version":"1.0","width":"100%","published":"2011-12-02 01:33:10","url":"https://memo88.hatenablog.com/entry/20111202/1322843590"}