{"image_url":null,"width":"100%","provider_name":"Hatena Blog","author_name":"tbpg","published":"2014-12-08 22:29:29","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20141208%2F1418045369\" title=\"Ruby | String |  - Tbpgr Blog\" 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"],"description":"\u6982\u8981 String# other -> -1 | 0 | 1 | nil \u8a73\u7d30 self \u3068 other \u3092 ASCII \u30b3\u30fc\u30c9\u9806\u3067\u6bd4\u8f03\u3002 \u623b\u308a\u5024\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002 self > other : 1 self == other : 0 self < other : -1\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f Comparable \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3059\u308b\u3002 other \u304c\u6587\u5b57\u5217\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001 other# \u3092\u5229\u7528\u3059\u308b\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 require 'tbpgr_utils' class NumericCompare def initialize(number) @number = numbe\u2026","url":"https://tbpgr.hatenablog.com/entry/20141208/1418045369","blog_title":"Tbpgr Blog","title":"Ruby | String | ","height":"190","blog_url":"https://tbpgr.hatenablog.com/","version":"1.0","author_url":"https://blog.hatena.ne.jp/tbpg/","type":"rich"}