diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-04 22:36:22 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-04 22:36:22 +0000 |
commit | e195e181e6f2bfd3c0386300688cd1270780f37c (patch) | |
tree | a6b25a0c74080fba816d7ab54f07d633cd2c0ed6 /lib/irb | |
parent | 9cfc40ab96a17304dc836fdc9a807ab85dde2917 (diff) | |
download | ruby-e195e181e6f2bfd3c0386300688cd1270780f37c.tar.gz |
* lib/irb.rb, lib/irb/context.rb: Add documentation on how to enable
auto-indentation and autocompletion using irbrc and irb_context
[ruby-core:51209] [Bug #7642] and [ruby-core:51348] [Bug #7680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/context.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index d6dfa1847a..72b36307d5 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -161,8 +161,22 @@ module IRB attr_accessor :prompt_c # See IRB@Customizing+the+IRB+Prompt for more information. attr_accessor :prompt_n - # Can be either the deafult <code>IRB.conf[:AUTO_INDENT]</code>, or the + # Can be either the default <code>IRB.conf[:AUTO_INDENT]</code>, or the # mode set by #prompt_mode= + # + # To enable auto-indentation in irb: + # + # IRB.conf[:AUTO_INDENT] = true + # + # or + # + # irb_context.auto_indent_mode = true + # + # or + # + # IRB.CurrentContext.auto_indent_mode = true + # + # See IRB@Configuration for more information. attr_accessor :auto_indent_mode # The format of the return statement, set by #prompt_mode= using the # +:RETURN+ of the +mode+ passed to set the current #prompt_mode. |