Method: Browser::Window#storage

Defined in:
opal/browser/storage.rb

#storage(name = :default) ⇒ Storage

Get a storage with the given name.

Parameters:

  • name (Symbol) (defaults to: :default)

    the name of the storage

Returns:



238
239
240
# File 'opal/browser/storage.rb', line 238

def storage(name = :default)
  Storage.new(to_n, name)
end