mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove unsused output_method argument
Fixes Ruby Bug 9876.
This commit is contained in:
parent
8439caab0a
commit
1fb4584825
2 changed files with 3 additions and 9 deletions
|
@ -441,8 +441,8 @@ module IRB
|
|||
# parsed as a :method_add_arg and the output won't be suppressed
|
||||
|
||||
# Creates a new irb session
|
||||
def initialize(workspace = nil, input_method = nil, output_method = nil)
|
||||
@context = Context.new(self, workspace, input_method, output_method)
|
||||
def initialize(workspace = nil, input_method = nil)
|
||||
@context = Context.new(self, workspace, input_method)
|
||||
@context.main.extend ExtendCommandBundle
|
||||
@signal_status = :IN_IRB
|
||||
@scanner = RubyLex.new
|
||||
|
|
|
@ -25,7 +25,7 @@ module IRB
|
|||
# +nil+:: uses stdin or Reidline or Readline
|
||||
# +String+:: uses a File
|
||||
# +other+:: uses this as InputMethod
|
||||
def initialize(irb, workspace = nil, input_method = nil, output_method = nil)
|
||||
def initialize(irb, workspace = nil, input_method = nil)
|
||||
@irb = irb
|
||||
if workspace
|
||||
@workspace = workspace
|
||||
|
@ -111,12 +111,6 @@ module IRB
|
|||
end
|
||||
self.save_history = IRB.conf[:SAVE_HISTORY] if IRB.conf[:SAVE_HISTORY]
|
||||
|
||||
if output_method
|
||||
@output_method = output_method
|
||||
else
|
||||
@output_method = StdioOutputMethod.new
|
||||
end
|
||||
|
||||
@echo = IRB.conf[:ECHO]
|
||||
if @echo.nil?
|
||||
@echo = true
|
||||
|
|
Loading…
Reference in a new issue