{"author_name":"l-light-note","provider_url":"https://hatena.blog","height":"190","title":"Ruby\u306e%w\u3092\u4f7f\u3046\u3068\u304d\u306f\u578b\u306b\u6c17\u3092\u4ed8\u3051\u3088\u3046","published":"2017-10-16 16:29:25","categories":["ruby"],"width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fl-light-note.hatenablog.com%2Fentry%2F2017%2F10%2F16%2F162925\" title=\"Ruby\u306e%w\u3092\u4f7f\u3046\u3068\u304d\u306f\u578b\u306b\u6c17\u3092\u4ed8\u3051\u3088\u3046 - \u3081\u3082\u3081\u3082 \u306e\u30fc\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","url":"https://l-light-note.hatenablog.com/entry/2017/10/16/162925","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/l-light-note/","blog_title":"\u3081\u3082\u3081\u3082 \u306e\u30fc\u3068","blog_url":"https://l-light-note.hatenablog.com/","description":"Rails\u306evalidation\u30eb\u30fc\u30eb\u306binclusion\u304c\u3042\u308b\u304c\u3001\u542b\u307e\u308c\u308b\u5024\u3092in\u306b\u6307\u5b9a\u3059\u308b\u969b\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3002 Rails Guide\u3067\u3082\u4f7f\u3063\u3066\u3044\u308b\u304c\u3001\u914d\u5217\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306b %w\u3092\u4f7f\u3046\u5834\u5408\u3001\u4e2d\u8eab\u306f\u6587\u5b57\u5217\u306b\u306a\u308b\u306e\u3067\u3001\u6570\u5b57\u3092\u691c\u8a3c\u3057\u305f\u3044\u5834\u5408\u306f\u8981\u6ce8\u610f\u3002 \u4f8b\u3048\u3070 %w(0 1 2) \u3068 [0, 1, 2]\u306f\u5225\u7269\u306a\u306e\u3067\u3042\u308b\u3002 %w\u306f\u6587\u5b57\u5217\u6271\u3044\u306b\u306a\u308b\u306e\u3067\u3001[\"0\", \"1\", \"2\"] \u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002 \u8aad\u307f\u8aad\u3080\u3068rubydoc\u306b\u3082\u300c\u6587\u5b57\u5217\u306e\u914d\u5217\u3092\u7c21\u5358\u306b\u8868\u73fe\u3067\u304d\u308b\u300d\u3068\u66f8\u3044\u3066\u3042\u308b\u3002 https://docs.ruby-lang.org/ja/latest/doc/spec=2fliteral.html#p\u2026"}