Class: PFM::Storage::Box
- Defined in:
- scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00002 Box.rb
Overview
Class responsive of storing various thing and holding some information about the storage
Instance Attribute Summary collapse
-
#content ⇒ Array<PFM::Pokemon>
readonly
Content of the storage.
-
#name ⇒ String
Name of the storage.
-
#theme ⇒ Integer
Theme of the storage.
Instance Method Summary collapse
-
#initialize(box_size, name, theme, content_overload = nil) ⇒ Box
constructor
Create a new box.
Constructor Details
#initialize(box_size, name, theme, content_overload = nil) ⇒ Box
Create a new box
19 20 21 22 23 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00002 Box.rb', line 19 def initialize(box_size, name, theme, content_overload = nil) @content = content_overload || Array.new(box_size) @name = name @theme = theme end |
Instance Attribute Details
#content ⇒ Array<PFM::Pokemon> (readonly)
Content of the storage
13 14 15 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00002 Box.rb', line 13 def content @content end |
#name ⇒ String
Name of the storage
7 8 9 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00002 Box.rb', line 7 def name @name end |
#theme ⇒ Integer
Theme of the storage
10 11 12 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00002 Box.rb', line 10 def theme @theme end |