Sha256: bfc311ca4d8f939ba2b08b6f0281a46cb0a664d7b43197b613ea0964b6014826
Contents?: true
Size: 351 Bytes
Versions: 21
Compression:
Stored size: 351 Bytes
Contents
# Backstage is a place to store things across stages. It does not allow you to store Actors here. class Backstage def initialize @storage = {} end def set(key, value) raise "Actors cannot wander back stage!" if value.is_a? Actor @storage[key] = value end alias []= set def get(key) @storage[key] end alias [] get end
Version data entries
21 entries across 21 versions & 1 rubygems