Class: Hbc::Container::Ttf

Inherits:
Naked show all
Defined in:
Library/Homebrew/cask/lib/hbc/container/ttf.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
11
# File 'Library/Homebrew/cask/lib/hbc/container/ttf.rb', line 6

def self.me?(criteria)
  # TrueType Font
  criteria.magic_number(/^\000\001\000\000\000/n) ||
    # Truetype Font Collection
    criteria.magic_number(/^ttcf/n)
end