Class: React::Sinatra::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#addonObject

Returns the value of attribute addon.



12
13
14
# File 'lib/react/sinatra/configuration.rb', line 12

def addon
  @addon
end

#asset_pathObject

Returns the value of attribute asset_path.



12
13
14
# File 'lib/react/sinatra/configuration.rb', line 12

def asset_path
  @asset_path
end

#envObject

Returns the value of attribute env.



12
13
14
# File 'lib/react/sinatra/configuration.rb', line 12

def env
  @env
end

#pool_sizeObject

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_timeoutObject

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_reactObject

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

#runtimeReact::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.

See Also:

  • Runtime.[]


19
20
21
# File 'lib/react/sinatra/configuration.rb', line 19

def runtime=(name)
  @runtime = Runtime[name.to_sym]
end