diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-03-26 09:30:48 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-03-29 10:58:45 -0700 |
commit | 85f3b767e8279188e5a0a594a21b7677126ed664 (patch) | |
tree | cf6b772ee6a3e51b588a962a8391de81f07e16f1 /lib/puppet/util/rdoc/code_objects.rb | |
parent | 6985cc0f898d71dbd2ffbb353a2a482d9783cb42 (diff) | |
download | puppet-85f3b767e8279188e5a0a594a21b7677126ed664.tar.gz puppet-85f3b767e8279188e5a0a594a21b7677126ed664.tar.xz puppet-85f3b767e8279188e5a0a594a21b7677126ed664.zip |
(#6830) Fix case where instance_variables returns symbols in Ruby 1.9
class Foo
def initialize
@a = 2
@b = "two"
end
end
p Foo.new.instance_variables
In Ruby 1.8 this prints
["@a", "@b"]
In Ruby 1.9 this prints
[:@a, :@b]
Reviewed-by: Jesse Wolfe <jesse@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions