Skip to content

Commit

Permalink
Kernel.local_variables resturns array of symbols in 1.9 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
krekoten committed Oct 23, 2011
1 parent 103241b commit 25a1478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kernel/common/eval.rb
Expand Up @@ -11,7 +11,7 @@ def local_variables
while scope
if scope.method.local_names
scope.method.local_names.each do |name|
name = name.to_s
name = name
locals << name
end
end
Expand All @@ -22,7 +22,7 @@ def local_variables
scope = scope.parent
end

locals
Rubinius.convert_to_names(locals)
end
module_function :local_variables

Expand Down
2 changes: 0 additions & 2 deletions spec/tags/19/ruby/core/kernel/local_variables_tags.txt

This file was deleted.

0 comments on commit 25a1478

Please sign in to comment.