Class: ApkResources::ResTypeSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/apktools/apkresources.rb

Overview

Structure defining the flags for a block of common resources

ResTypeSpec = Struct.new(:header, :id, :entry_count, :entries, :types)

  • header = ChunkHeader

  • id = String value of the referenced type (e.g. “drawable”)

  • entry_count = Number of type entries in this chunk

  • entries = Array of config flags for each type entry

  • types = The ResType associated with this spec

Instance Attribute Summary collapse

Instance Attribute Details

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



78
79
80
# File 'lib/apktools/apkresources.rb', line 78

def entries
  @entries
end

#entry_countObject

Returns the value of attribute entry_count

Returns:

  • (Object)

    the current value of entry_count



78
79
80
# File 'lib/apktools/apkresources.rb', line 78

def entry_count
  @entry_count
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



78
79
80
# File 'lib/apktools/apkresources.rb', line 78

def header
  @header
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



78
79
80
# File 'lib/apktools/apkresources.rb', line 78

def id
  @id
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



78
79
80
# File 'lib/apktools/apkresources.rb', line 78

def types
  @types
end