Module: HMap::HeaderType

Included in:
Project::Helper, Target::Helper
Defined in:
lib/hmap/xc/header_type.rb

Instance Method Summary collapse

Instance Method Details

#headers_hash(*types) ⇒ Object



28
29
30
# File 'lib/hmap/xc/header_type.rb', line 28

def headers_hash(*types)
  Hash[types.map { |type| [type, send(type)] }]
end

#private_entrysObject



12
13
14
15
16
# File 'lib/hmap/xc/header_type.rb', line 12

def private_entrys
  return @private_entrys if defined?(@private_entrys)

  @private_entrys = entrys.select { |entry| entry.type == :Private }
end

#project_entrysObject



18
19
20
21
22
# File 'lib/hmap/xc/header_type.rb', line 18

def project_entrys
  return @project_entrys if defined?(@project_entrys)

  @project_entrys = entrys.select { |entry| entry.type == :Project }
end

#public_entrysObject



6
7
8
9
10
# File 'lib/hmap/xc/header_type.rb', line 6

def public_entrys
  return @public_entrys if defined?(@public_entrys)

  @public_entrys = entrys.select { |entry| entry.type == :Public }
end

#use_vfs?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/hmap/xc/header_type.rb', line 24

def use_vfs?
  !public_entrys.empty? || !private_entrys.empty? || build_as_framework?
end