Class: ArkTools::ArkMod
- Inherits:
-
Object
- Object
- ArkTools::ArkMod
- Defined in:
- lib/mods/ark_mod.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(mod) ⇒ ArkMod
constructor
A new instance of ArkMod.
- #to_s ⇒ Object
Constructor Details
#initialize(mod) ⇒ ArkMod
Returns a new instance of ArkMod.
5 6 7 8 |
# File 'lib/mods/ark_mod.rb', line 5 def initialize(mod) @id = mod[0] @description = mod[1] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/mods/ark_mod.rb', line 3 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/mods/ark_mod.rb', line 3 def id @id end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/mods/ark_mod.rb', line 10 def to_s "#{id}:#{description}" end |