Method: Hallon::Session.initialize
- Defined in:
- lib/hallon/session.rb
.initialize(appkey, options = {}) { ... } ⇒ Session
Initializes the Spotify session. If you need to access the instance at a later time, you can use instance.
48 49 50 51 |
# File 'lib/hallon/session.rb', line 48 def Session.initialize(appkey, = {}, &block) raise "Session has already been initialized" if defined?(@__instance__) @__instance__ = new(appkey, , &block) end |