Tbpgr Blog

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

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

Ruby | Numeric | +@

概要 Numeric#+@ 詳細 単項演算子のプラス。自身のインスタンスを返却する サンプルコード a = 1 puts +a puts a == +a 出力 1 true 参照 http://docs.ruby-lang.org/ja/2.0.0/method/Numeric/i/=2b=40.html