Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > irb/ext/math-modeライブラリ > IRB::Contextクラス > math_mode=

instance method IRB::Context#math_mode=

math_mode=(opt) [added by irb/ext/math-mode]

math_mode を有効にするかどうかを指定します。

.irbrc ファイル中で IRB.conf[:MATH_MODE] を設定する事でも同様の事が行え ます。

[PARAM] opt:
math_mode を有効にする場合に true を指定します。
[EXCEPTION] IRB::CantReturnToNormalMode:
既に math_mode の状態で opt に false を指定した場合に発生します。
class IRB::Context