14 lines
		
	
	
		
			262 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			262 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require "hbc/container/naked"
 | |
| 
 | |
| module Hbc
 | |
|   class Container
 | |
|     class Pkg < Naked
 | |
|       def self.me?(criteria)
 | |
|         criteria.extension(/m?pkg$/) &&
 | |
|           (criteria.path.directory? ||
 | |
|            criteria.magic_number(/^xar!/n))
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 | 
