[macruby-changes] [4670] DietRB/trunk/lib/irb/ext/history.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 8 03:57:07 PDT 2010


Revision: 4670
          http://trac.macosforge.org/projects/ruby/changeset/4670
Author:   eloy.de.enige at gmail.com
Date:     2010-10-08 03:57:06 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Small cleanup

From: Eloy Duran <eloy.de.enige at gmail.com>

Modified Paths:
--------------
    DietRB/trunk/lib/irb/ext/history.rb

Modified: DietRB/trunk/lib/irb/ext/history.rb
===================================================================
--- DietRB/trunk/lib/irb/ext/history.rb	2010-10-08 10:56:58 UTC (rev 4669)
+++ DietRB/trunk/lib/irb/ext/history.rb	2010-10-08 10:57:06 UTC (rev 4670)
@@ -45,7 +45,6 @@
       end
       
       start_index.upto(end_index) { |i| print_line(i) }
-      nil
     end
     
     def history!(entry_or_range)
@@ -63,7 +62,6 @@
         puts IRB.formatter.prompt(@context) + line
         @context.process_line(line)
       end
-      nil
     end
     
     private
@@ -78,16 +76,19 @@
 module Kernel
   def history(number_of_entries = IRB::History.max_entries_in_overview)
     IRB::History.current.history(number_of_entries)
+    nil
   end
   alias_method :h, :history
   
   def history!(entry_or_range)
     IRB::History.current.history!(entry_or_range)
+    nil
   end
   alias_method :h!, :history!
   
   def clear_history!
     IRB::History.current.clear!
+    nil
   end
 end
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/493349ff/attachment-0001.html>


More information about the macruby-changes mailing list