# File lib/drb/drb.rb, line 1460def check_insecure_method(obj,msg_id)returntrueifProc===obj&&msg_id==:__drb_yieldraise(ArgumentError,"#{any_to_s(msg_id)} is not a symbol")unlessSymbol==msg_id.class
raise(SecurityError,"insecure method `#{msg_id}'")ifinsecure_method?(msg_id)ifobj.private_methods.include?(msg_id)desc=any_to_s(obj)raiseNoMethodError,"private method `#{msg_id}' called for #{desc}"elsifobj.protected_methods.include?(msg_id)desc=any_to_s(obj)raiseNoMethodError,"protected method `#{msg_id}' called for #{desc}"elsetrueendend