Method: #app
- Defined in:
- lib/console_app.rb
#app(create = false) ⇒ Object
reference the global “app” instance, created on demand. To recreate the instance, pass a non-false value as the parameter.
8 9 10 11 12 13 |
# File 'lib/console_app.rb', line 8 def app(create=false) @app_integration_instance = nil if create @app_integration_instance ||= new_session do |sess| sess.host! "www.example.com" end end |