#NEWLINE# def get( self , instance , methodName , default = _nodefault ) : #NEWLINE# #INDENT# '\n        Retrieve an exposed method with the given name from the given instance.\n\n        @raise UnexposedMethodError: Raised if C{default} is not specified and\n        there is no exposed method with the given name.\n\n        @return: A callable object for the named method assigned to the given\n        instance.\n        ' #NEWLINE# method = getattr ( instance , methodName , None ) #NEWLINE# exposedThrough = getattr ( method , 'exposedThrough' , [ ] ) #NEWLINE# if ( self not in exposedThrough ) : #NEWLINE# #INDENT# if ( default is self . _nodefault ) : #NEWLINE# #INDENT# raise UnexposedMethodError ( self , methodName ) #NEWLINE# #UNINDENT# return default #NEWLINE# #UNINDENT# return method