Class: ApkResources::ResType

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

Overview

Structure that houses all the resources for a given type

ResType = Struct.new(:header, :id, :config, :entry_count, :entries)

  • header = ChunkHeader

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

  • config = ResTypeConfig defining the configuration for this type

  • entry_count = Number of entries in this chunk

  • entries = Array of Hashes of [ResTypeConfig, ResTypeEntry] in this chunk

Instance Attribute Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



90
91
92
# File 'lib/apktools/apkresources.rb', line 90

def config
  @config
end

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



90
91
92
# File 'lib/apktools/apkresources.rb', line 90

def entries
  @entries
end

#entry_countObject

Returns the value of attribute entry_count

Returns:

  • (Object)

    the current value of entry_count



90
91
92
# File 'lib/apktools/apkresources.rb', line 90

def entry_count
  @entry_count
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



90
91
92
# File 'lib/apktools/apkresources.rb', line 90

def header
  @header
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



90
91
92
# File 'lib/apktools/apkresources.rb', line 90

def id
  @id
end