lib/irb.rb in irb-1.11.0 vs lib/irb.rb in irb-1.11.1

- old
+ new

@@ -703,16 +703,10 @@ # Command-line option <tt>-w</tt> suppresses warnings. # # Command-line option <tt>-W[_level_]<tt> # sets warning level; 0=silence, 1=medium, 2=verbose. # -# :stopdoc: -# === Performance Measurement -# -# IRB.conf[:MEASURE] IRB.conf[:MEASURE_CALLBACKS] IRB.conf[:MEASURE_PROC] -# :startdoc: -# # == Other Features # # === Load Modules # # You can specify the names of modules that are to be required at startup. @@ -769,16 +763,10 @@ # # IRB.conf[:EXTRA_DOC_DIRS] = %w[your_doc_dir my_doc_dir] # # Note that the configuration file entry overrides the command-line options. # -# :stopdoc: -# === \Context Mode -# -# IRB.conf[:CONTEXT_MODE] -# :startdoc: -# # === \IRB Name # # You can specify a name for \IRB. # # The default initial value is <tt>'irb'</tt>: @@ -813,16 +801,10 @@ # IRB.conf[:IRB_RC] = proc {|conf| puts conf.class } # # Each time the configuration is changed, # that proc is called with argument +conf+: # -# :stopdoc: -# === \Locale -# -# IRB.conf[:LC_MESSAGES] -# :startdoc: -# # === Encodings # # Command-line option <tt>-E _ex_[:_in_]</tt> # sets initial external (ex) and internal (in) encodings. # @@ -902,11 +884,11 @@ end irb.run(@CONF) end # Quits irb - def IRB.irb_exit(irb, ret) - throw :IRB_EXIT, ret + def IRB.irb_exit(*) + throw :IRB_EXIT end # Aborts then interrupts irb. # # Will raise an Abort exception, or the given +exception+.