Class: Integer
- Defined in:
- lib/decentworks/hexdigest_support/numeric.rb
Overview
MEMO: Numericへ直接includeせず、具体的なクラスごとにincludeする。Numericのサブクラスには 有理数へ変換できないものがあり(Complexは実部と虚部の組なので、虚部があると #to_rがRangeErrorになる)、一律に寄せると壊れるため
MEMO: Complexは対象外とする。Complex(1, 0) == 1 が真なので厳密には型で割れるが、 アプリケーションで虚数を扱う場面はまれであり、対応のコストに見合わない
Method Summary
Methods included from Decentworks::HexdigestSupport::NumericLike
#to_hexdigest_rational, #to_hexdigest_source, #to_hexdigest_type