#NEWLINE# @ moduledef . function ( 'require' , path = 'path' ) #NEWLINE# def function_require( self , space , path ) : #NEWLINE# #INDENT# assert ( path is not None ) #NEWLINE# orig_path = path #NEWLINE# path = Kernel . find_feature ( space , path ) #NEWLINE# w_loaded_features = space . globals . get ( space , '$"' ) #NEWLINE# w_already_loaded = space . send ( w_loaded_features , 'include?' , [ space . newstr_fromstr ( path ) ] ) #NEWLINE# if space . is_true ( w_already_loaded ) : #NEWLINE# #INDENT# return space . w_false #NEWLINE# #UNINDENT# Kernel . load_feature ( space , path , orig_path ) #NEWLINE# w_loaded_features . method_lshift ( space , space . newstr_fromstr ( path ) ) #NEWLINE# return space . w_true