<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Ruby技術者認定試験の勉強をしていて、初めて知った機能だったのでまとめておく。 Ruby長年やってるけど、条件式の範囲式とか初めて見た。5.times { (_1==2)..(_1==3) ? p(_1) : 0 } みたいなやつ。— 神速 (@sinsoku_listy) 2022年10月6日 公式ドキュメント 条件式としての範囲式 挙動 基本 公式ドキュメントから引用。 5.times{|n| if (n==2)..(n==3) p n end } #=&gt; 2 # 3 5.times{|n| if (n==2)...(n==3) p n end } #=&gt; 2 # 3 テキストの処理 複…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2022%2F10%2F16%2F143149&quot; title=&quot;Rubyのフリップフロップ (flip-flop) 構文 - アジャイルSEの憂鬱&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>2022-10-16 14:31:49</published>
  <title>Rubyのフリップフロップ (flip-flop) 構文</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2022/10/16/143149</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
