Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of all warnings when $-w is `true'.

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4945 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit 0198d3b44339b6de0933829ec583a5816f8c3918 1 parent 189863e
@alloy alloy authored
Showing with 4 additions and 2 deletions.
  1. +2 −2 lib/irb/driver/tty.rb
  2. +2 −0  lib/irb/source.rb
View
4 lib/irb/driver/tty.rb
@@ -39,8 +39,8 @@ def update_last_line(prompt, reformatted_line)
end
def process_input(line)
- context.process_line(line) do |prompt, line|
- update_last_line(prompt, line)
+ context.process_line(line) do |prompt, updated_line|
+ update_last_line(prompt, updated_line)
end
end
View
2  lib/irb/source.rb
@@ -71,6 +71,8 @@ def reflect
class Reflector < Ripper::SexpBuilder
def initialize(source)
super
+ @code_block = @terminate = @syntax_error = @in_string = @in_regexp = @in_array = nil
+
@level = 0
@code_block = !parse.nil? && !@in_string && !@in_regexp && !@in_array
end
Please sign in to comment.
Something went wrong with that request. Please try again.