> By changing the fields of m, the applet can then change the Security Manager,
> even though the Security Manager's fields have been declared private.



class Dog
  def initialize
    @secret = 10
  end
end

d = Dog.new
puts d.instance_eval("@secret")

--output:--
10

d.instance_eval("@secret = 20")
puts d.instance_eval("@secret")

--output:--
20

-- 
Posted via http://www.ruby-forum.com/.