<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby メソッドチェーン実践：select・map・inject の活用パターン Ruby の Enumerable メソッドはチェーンでつなぐことで、複雑な処理を宣言的かつ簡潔に書けます。実際のコードでよく登場するパターンをまとめます。 カートの合計金額を計算する 在庫あり・数量1以上の商品だけ対象にして合計金額を出す例です。 cart = [ { name: 'apple', price: 100, qty: 2, in_stock: true }, { name: 'banana', price: 80, qty: 0, in_stock: false }, # 数量0 { name:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F06%2F30%2F222313&quot; title=&quot;Ruby メソッドチェーン実践：select・map・inject の活用パターン - Engineering Tech Dojo&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>2026-06-30 22:23:13</published>
  <title>Ruby メソッドチェーン実践：select・map・inject の活用パターン</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/06/30/222313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
