<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yee</title>
    <description>The latest articles on DEV Community by Yee (@yee).</description>
    <link>https://dev.to/yee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F637996%2F3ee01e6f-1b66-4be9-a7c1-194044895e90.png</url>
      <title>DEV Community: Yee</title>
      <link>https://dev.to/yee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yee"/>
    <language>en</language>
    <item>
      <title>Conditional building of Ruby Array and Hash</title>
      <dc:creator>Yee</dc:creator>
      <pubDate>Mon, 10 Jul 2023 16:18:34 +0000</pubDate>
      <link>https://dev.to/yee/conditional-building-of-ruby-array-and-hash-hc3</link>
      <guid>https://dev.to/yee/conditional-building-of-ruby-array-and-hash-hc3</guid>
      <description>&lt;p&gt;[].tap do |a|&lt;br&gt;
  a &amp;lt;&amp;lt; :first if true&lt;br&gt;
end&lt;/p&gt;

&lt;p&gt;{}.tap do |h|&lt;br&gt;
  h[:first] = 1 if true&lt;br&gt;
end&lt;/p&gt;

&lt;p&gt;{ &lt;br&gt;
  a: 'a', &lt;br&gt;
  b: ('b' if true) &lt;br&gt;
}.compact&lt;/p&gt;

&lt;p&gt;[1, 2, *(3 if true)]&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
