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

Returns a new instance of Entry.



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

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.



189
190
191
# File 'lib/exerb/resource.rb', line 189

def data
  @data
end

#idObject

Returns the value of attribute id.



189
190
191
# File 'lib/exerb/resource.rb', line 189

def id
  @id
end

#langObject

Returns the value of attribute lang.



189
190
191
# File 'lib/exerb/resource.rb', line 189

def lang
  @lang
end

#typeObject

Returns the value of attribute type.



189
190
191
# File 'lib/exerb/resource.rb', line 189

def type
  @type
end

Instance Method Details

#to_resource_entryObject



191
192
193
# File 'lib/exerb/resource.rb', line 191

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