diff options
author | aycabta <[email protected]> | 2019-05-15 16:36:33 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2019-05-21 08:57:21 +0900 |
commit | 3a9008b9845db544d0788851f9527ce9f9f6bf4a (patch) | |
tree | 0bc7cd93696f1a57b2d25e6a72df71bde72ecf44 /lib/irb/context.rb | |
parent | df6a673ca55d26a768ead23466c7e055a8596d7a (diff) |
Add --colorize and --nocolorize options to IRB
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r-- | lib/irb/context.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index f8a6009d17..749130edb2 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -142,6 +142,10 @@ module IRB # # See #use_readline= for more information. attr_reader :use_readline + # Whether colorization is enabled or not. + # + # A copy of the default <code>IRB.conf[:USE_COLORIZE]</code> + attr_reader :use_colorize # A copy of the default <code>IRB.conf[:INSPECT_MODE]</code> attr_reader :inspect_mode @@ -222,6 +226,8 @@ module IRB # Alias for #use_readline alias use_readline? use_readline + # Alias for #use_colorize + alias use_colorize? use_colorize # Alias for #rc alias rc? rc alias ignore_sigint? ignore_sigint |