Class: CloudKit::FlashSession
Overview
FlashSessions are hashes that forget their contents after the first access. Useful for session-based messaging.
Instance Method Summary collapse
-
#[](k) ⇒ Object
Access a value, then forget it.
-
#[]=(k, v) ⇒ Object
Set the value for a key.
-
#initialize ⇒ FlashSession
constructor
A new instance of FlashSession.
Constructor Details
#initialize ⇒ FlashSession
Returns a new instance of FlashSession.
6 7 8 |
# File 'lib/cloudkit/flash_session.rb', line 6 def initialize @values = {} end |