#NEWLINE# @ moduledef . method ( 'define_singleton_method' , name = 'symbol' ) #NEWLINE# @ check_frozen ( ) #NEWLINE# def method_define_singleton_method( self , space , name , w_method = None , block = None ) : #NEWLINE# #INDENT# args_w = [ space . newsymbol ( name ) ] #NEWLINE# if ( w_method is not None ) : #NEWLINE# #INDENT# args_w . append ( w_method ) #NEWLINE# #UNINDENT# return space . send ( space . getsingletonclass ( args_w ) , 'define_method' , args_w , block )