Class: Exerb::Resource::Entry
- Inherits:
-
Object
- Object
- Exerb::Resource::Entry
- Defined in:
- lib/exerb/resource.rb
Overview
#
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, id, lang, data) ⇒ Entry
constructor
A new instance of Entry.
- #to_resource_entry ⇒ Object
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
#data ⇒ Object
Returns the value of attribute data.
189 190 191 |
# File 'lib/exerb/resource.rb', line 189 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
189 190 191 |
# File 'lib/exerb/resource.rb', line 189 def id @id end |
#lang ⇒ Object
Returns the value of attribute lang.
189 190 191 |
# File 'lib/exerb/resource.rb', line 189 def lang @lang end |
#type ⇒ Object
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_entry ⇒ Object
191 192 193 |
# File 'lib/exerb/resource.rb', line 191 def to_resource_entry return Exerb::Win32::ResourceEntry.new(@data.pack, lang) end |