Class: Backstage
Overview
Backstage is a place to store things across stages. It does not allow you to store Actors here.
Instance Method Summary collapse
- #get(key) ⇒ Object (also: #[])
-
#initialize ⇒ Backstage
constructor
A new instance of Backstage.
- #set(key, value) ⇒ Object (also: #[]=)
Constructor Details
#initialize ⇒ Backstage
Returns a new instance of Backstage.
3 4 5 |
# File 'lib/gamebox/core/backstage.rb', line 3 def initialize @storage = {} end |
Instance Method Details
#get(key) ⇒ Object Also known as: []
13 14 15 |
# File 'lib/gamebox/core/backstage.rb', line 13 def get(key) @storage[key] end |