{"author_url":"https://blog.hatena.ne.jp/rubytips86/","type":"rich","title":"\u914d\u5217\u306e\u4e2d\u304b\u3089\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b","description":"\u914d\u5217\u306e\u4e2d\u304b\u3089\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b\u306b\u306fArray#max\u3001Array#min\u3092\u4f7f\u3046\u3002 p [1, 2, 3, 4, 5].max #=> 5 p [1, 2, 3, 4, 5].min #=> 1 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b\u305f\u3081\u306e\u6bd4\u8f03\u306f\u3067\u884c\u308f\u308c\u308b\u3002\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3059\u3068\u6bd4\u8f03\u306e\u51e6\u7406\u3092\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u6587\u5b57\u5217\u3092\u6570\u5024\u5316\u3057\u3066\u6bd4\u8f03\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002 p [\"1\", \"2\", \"3\", \"4\", \"5\"].max{|a, b| a.to_i <=> b.to_i } #=> \"5\" p [\"1\", \"2\", \"3\", \"4\", \"5\"].min{|a, b| a.to_i <=>\u2026","height":"190","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F04%2F02%2F202142\" title=\"\u914d\u5217\u306e\u4e2d\u304b\u3089\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b - Ruby Tips!\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"rubytips86","blog_title":"Ruby Tips!","image_url":null,"width":"100%","published":"2014-04-02 20:21:42","blog_url":"https://rubytips86.hatenablog.com/","provider_name":"Hatena Blog","url":"https://rubytips86.hatenablog.com/entry/2014/04/02/202142","categories":[]}