<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description># each + 検出フラグ 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…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F20111202%2F1322843590&quot; title=&quot; Ruby: 検出フラグをmap+anyで置き換える - memo486&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-02 01:33:10</published>
  <title> Ruby: 検出フラグをmap+anyで置き換える</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/20111202/1322843590</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
