Class: Hbc::Container::Pkg

Inherits:
Naked show all
Defined in:
Library/Homebrew/cask/lib/hbc/container/pkg.rb

Class Method Summary collapse

Methods inherited from Naked

#extract, #target_file

Methods inherited from Base

#extract_nested_container, #extract_nested_inside, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Hbc::Container::Base

Class Method Details

.me?(criteria) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'Library/Homebrew/cask/lib/hbc/container/pkg.rb', line 6

def self.me?(criteria)
  criteria.extension(/m?pkg$/) &&
    (criteria.path.directory? ||
     criteria.magic_number(/^xar!/n))
end