{"blog_url":"https://www.sunsunflowers.com/","categories":["IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"type":"rich","title":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011\u3010Ruby\u3011if\u30fbwhile\u6587\u3068\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066","url":"https://www.sunsunflowers.com/entry/it/ruby-if-while-oneliner","provider_url":"https://hatena.blog","author_name":"mTakata","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mTakata/20200509/20200509221329.jpg","blog_title":"Sun~sun~Flower's","author_url":"https://blog.hatena.ne.jp/mTakata/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sunsunflowers.com%2Fentry%2Fit%2Fruby-if-while-oneliner\" title=\"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011\u3010Ruby\u3011if\u30fbwhile\u6587\u3068\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066 - Sun~sun~Flower&#39;s\" 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","published":"2020-05-13 10:00:00","version":"1.0","height":"190","width":"100%","description":"\u3053\u3093\u306b\u3061\u306f\u3002 \u5f53\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u308a\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cRuby\u300d\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 \u3010\u76ee\u6b21\u3011 \u554f\u984c.1 \u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306e\u8aac\u660e \u6a21\u7bc4\u56de\u7b54 \u554f\u984c.2 \u6a21\u7bc4\u56de\u7b54 \u554f\u984c.1 \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\uff12\u884c\u76ee\u4ee5\u964d\u3092\u3001\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u66f8\u304d\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002 ```Ruby 1 str = \"is this a pen?\"2 if str.include?(\"?\")3 puts \"yes, it is.\"4 end ``` \u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306e\u8aac\u660e \u4f55\u884c\u306b\u3082\u66f8\u304b\u308c\u305f\u30b3\u30fc\u30c9\u3092\u4e00\u3064\u306b\u307e\u3068\u3081\u3066\u3001\u8aad\u307f\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u3067\u3059\u3002 \u4f8b\u3048\u3070\u3001 ```Ruby 1 if message == \"\u30d7\u2026"}