Class: React::Sinatra::Configuration
- Inherits:
-
Object
- Object
- React::Sinatra::Configuration
- Includes:
- Singleton
- Defined in:
- lib/react/sinatra/configuration.rb
Overview
Class for expressing configuration delegated from classes.
This #instance entrypoint is referred from application.
Instance Attribute Summary collapse
-
#addon ⇒ Object
Returns the value of attribute addon.
-
#asset_path ⇒ Object
Returns the value of attribute asset_path.
-
#env ⇒ Object
Returns the value of attribute env.
-
#pool_size ⇒ Object
Returns the value of attribute pool_size.
-
#pool_timeout ⇒ Object
Returns the value of attribute pool_timeout.
-
#use_bundled_react ⇒ Object
Returns the value of attribute use_bundled_react.
Instance Method Summary collapse
-
#runtime ⇒ React::Sinatra::Runtime::RuntimeBased
Returns current runtime.
-
#runtime=(name) ⇒ React::Sinatra::Runtime::RuntimeBased
Assigns runtime by given name.
Instance Attribute Details
#addon ⇒ Object
Returns the value of attribute addon.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def addon @addon end |
#asset_path ⇒ Object
Returns the value of attribute asset_path.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def asset_path @asset_path end |
#env ⇒ Object
Returns the value of attribute env.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def env @env end |
#pool_size ⇒ Object
Returns the value of attribute pool_size.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def pool_size @pool_size end |
#pool_timeout ⇒ Object
Returns the value of attribute pool_timeout.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def pool_timeout @pool_timeout end |
#use_bundled_react ⇒ Object
Returns the value of attribute use_bundled_react.
12 13 14 |
# File 'lib/react/sinatra/configuration.rb', line 12 def use_bundled_react @use_bundled_react end |
Instance Method Details
#runtime ⇒ React::Sinatra::Runtime::RuntimeBased
Returns current runtime.
25 26 27 |
# File 'lib/react/sinatra/configuration.rb', line 25 def runtime @runtime end |
#runtime=(name) ⇒ React::Sinatra::Runtime::RuntimeBased
Assigns runtime by given name.
19 20 21 |
# File 'lib/react/sinatra/configuration.rb', line 19 def runtime=(name) @runtime = Runtime[name.to_sym] end |