Class: Browser::SessionStorage
- Defined in:
- lib/diamonds/opal/browser/storage.rb
Overview
A SessionStorage allows you to store data across page reloads, as long as the session is active.
Instance Attribute Summary
Attributes inherited from Storage
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Storage
#[]=, #autosave!, #autosave?, #clear, #commit, #delete, #each, #initialize, json_create, #method_missing, #no_autosave!, #replace, #to_h, #to_json
Constructor Details
This class inherits a constructor from Browser::Storage
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Browser::Storage
Class Method Details
Instance Method Details
#reload ⇒ Object
223 224 225 |
# File 'lib/diamonds/opal/browser/storage.rb', line 223 def reload replace `#@window.sessionStorage[#@name] || '{}'` end |