Hi,
In message "$SAFE level mutation for tained classes"
on 03/01/29, Gennady <bystr / mac.com> writes:
|What is the rationale behind the following change in SAFE level when
|invoking a method with "call":
|
|class Test
| attr_accessor :value
| def show
| "Safe level: #{$SAFE}"
| end
|end
|
|Test.taint
|t = Test.new
|
|p t.show # ==> Safe level: 0
|p t.method(:show).call # ==> Safe level: 4
Method objects are tainted if they retrieved from tainted objects.
It may be overkill. Let me re-think.
matz.