Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-12-08から1日間の記事一覧

Ruby | String |

概要 String# other -> -1 | 0 | 1 | nil 詳細 self と other を ASCII コード順で比較。 戻り値は以下のようになる。 self > other : 1 self == other : 0 self < other : -1このメソッドは Comparable モジュールのメソッドを実装するために利用する。 oth…