Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > irb/contextライブラリ > IRB::Contextクラス > inspect?

instance method IRB::Context#inspect?

inspect? -> bool

IRB::Context#inspect_mode が有効かどうかを返します。

[RETURN]
出力結果に inspect したものを表示する場合は true を返します。 to_s したものを表示する場合は false を返します。

[SEE_ALSO] IRB::Context#inspect_mode, IRB::Context#inspect_mode=

inspect? -> bool [added by irb/ext/math-mode]

IRB::Context#inspect_mode が有効かどうかを返します。

ただし、IRB::Context#inspect_mode が未設定で math_mode が有効な場 合には false を返します。

[SEE_ALSO] IRB::Context#math?

class IRB::Context