{"blog_url":"https://job-info.hateblo.jp/","published":"2024-08-23 20:36:11","provider_name":"Hatena Blog","url":"https://job-info.hateblo.jp/entry/2024/08/23/203611","author_name":"tomotomo1129","author_url":"https://blog.hatena.ne.jp/tomotomo1129/","height":"190","provider_url":"https://hatena.blog","blog_title":"Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F08%2F23%2F203611\" title=\"Ruby\u3067\u5f8c\u65b9\u4e00\u81f4\u306e\u5224\u5b9a\u51e6\u7406\u3092\u3059\u308b\u65b9\u6cd5 - Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby"],"title":"Ruby\u3067\u5f8c\u65b9\u4e00\u81f4\u306e\u5224\u5b9a\u51e6\u7406\u3092\u3059\u308b\u65b9\u6cd5","image_url":null,"version":"1.0","description":"Ruby\u3067\u5f8c\u65b9\u4e00\u81f4\u306e\u5224\u5b9a\u51e6\u7406\u3092\u3059\u308b\u65b9\u6cd5 Ruby\u3067\u5f8c\u65b9\u4e00\u81f4\u306e\u5224\u5b9a\u51e6\u7406\u3092\u3059\u308b\u65b9\u6cd5 Ruby\u3067\u5f8c\u65b9\u4e00\u81f4\u306e\u5224\u5b9a\u3092\u884c\u3046\u306b\u306f\u3001String#end_with? \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6587\u5b57\u5217\u304c\u6307\u5b9a\u3055\u308c\u305f\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u7d42\u308f\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u4f7f\u7528\u4f8b\u3067\u3059\u3002 text = \"example.txt\" if text.end_with?(\".txt\") puts \"\u30d5\u30a1\u30a4\u30eb\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3059\" else puts \"\u30d5\u30a1\u30a4\u30eb\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\" end end_with? \u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5f15\u6570\u3068\u3057\u3066\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u53d7\u3051\u53d6\u308a\u3001\u6587\u5b57\u5217\u304c\u305d\u306e\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u7d42\u308f\u308b\u5834\u5408\u306b tru\u2026","type":"rich"}