Permalink
Browse files

Don't use initialize as method as MacRuby chokes on it

  • Loading branch information...
1 parent 9e299fd commit 01711aa64432f2ad4ec56d4f0bee2c1179e75678 @alloy committed Jul 24, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/irb/ext/history.rb
  2. +2 −2 spec/ext/history_spec.rb
@@ -11,7 +11,7 @@ module History
class << self
attr_accessor :file, :max_entries_in_overview
- def initialize
+ def setup
to_a.each do |source|
Readline::HISTORY.push(source)
end if Readline::HISTORY.to_a.empty?
@@ -89,4 +89,4 @@ def clear_history!
IRB::History.file = File.expand_path("~/.irb_history")
IRB::History.max_entries_in_overview = 50
-IRB::History.initialize
+IRB::History.setup
@@ -58,8 +58,8 @@
@history.input "puts :ok"
@history.input "foo(x)"
- IRB::History.initialize
- IRB::History.initialize
+ IRB::History.setup
+ IRB::History.setup
Readline::HISTORY.to_a.should == ["puts :ok", "foo(x)"]
end

0 comments on commit 01711aa

Please sign in to comment.