Class: Exerb::Resource::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/exerb/resource.rb

Overview

#

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, id, lang, data) ⇒ Entry



174
175
176
177
178
179
# File 'lib/exerb/resource.rb', line 174

def initialize(type, id, lang, data)
  @type = type
  @id   = id
  @lang = lang
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



181
182
183
# File 'lib/exerb/resource.rb', line 181

def data
  @data
end

#idObject

Returns the value of attribute id.



181
182
183
# File 'lib/exerb/resource.rb', line 181

def id
  @id
end

#langObject

Returns the value of attribute lang.



181
182
183
# File 'lib/exerb/resource.rb', line 181

def lang
  @lang
end

#typeObject

Returns the value of attribute type.



181
182
183
# File 'lib/exerb/resource.rb', line 181

def type
  @type
end

Instance Method Details

#to_resource_entryObject



183
184
185
# File 'lib/exerb/resource.rb', line 183

def to_resource_entry
  return Exerb::Win32::ResourceEntry.new(@data.pack, lang)
end