mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Make GlobUtils extend self for easier access
				
					
				
			This commit is contained in:
		
							parent
							
								
									5403aee899
								
							
						
					
					
						commit
						1bd59c1bf0
					
				
					 2 changed files with 3 additions and 5 deletions
				
			
		|  | @ -1,11 +1,7 @@ | ||||||
| require "../spec_helper" | require "../spec_helper" | ||||||
| 
 | 
 | ||||||
| module Ameba | module Ameba | ||||||
|   struct GlobUtilsClass |   subject = GlobUtils | ||||||
|     include GlobUtils |  | ||||||
|   end |  | ||||||
| 
 |  | ||||||
|   subject = GlobUtilsClass.new |  | ||||||
|   current_file_basename = File.basename(__FILE__) |   current_file_basename = File.basename(__FILE__) | ||||||
|   current_file_path = "spec/ameba/#{current_file_basename}" |   current_file_path = "spec/ameba/#{current_file_basename}" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,8 @@ | ||||||
| module Ameba | module Ameba | ||||||
|   # Helper module that is utilizes helpers for working with globs. |   # Helper module that is utilizes helpers for working with globs. | ||||||
|   module GlobUtils |   module GlobUtils | ||||||
|  |     extend self | ||||||
|  | 
 | ||||||
|     # Returns all files that match specified globs. |     # Returns all files that match specified globs. | ||||||
|     # Globs can have wildcards or be rejected: |     # Globs can have wildcards or be rejected: | ||||||
|     # |     # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue