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
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
#data ⇒ Object
Returns the value of attribute data.
181 182 183 |
# File 'lib/exerb/resource.rb', line 181 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
181 182 183 |
# File 'lib/exerb/resource.rb', line 181 def id @id end |
#lang ⇒ Object
Returns the value of attribute lang.
181 182 183 |
# File 'lib/exerb/resource.rb', line 181 def lang @lang end |
#type ⇒ Object
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_entry ⇒ Object
183 184 185 |
# File 'lib/exerb/resource.rb', line 183 def to_resource_entry return Exerb::Win32::ResourceEntry.new(@data.pack, lang) end |