Class: TurboDesktop::Configuration
- Inherits:
-
Object
- Object
- TurboDesktop::Configuration
- Defined in:
- lib/turbo_desktop/configuration.rb
Instance Attribute Summary collapse
-
#inspector_enabled ⇒ Object
Returns the value of attribute inspector_enabled.
-
#inspector_mount_path ⇒ Object
Returns the value of attribute inspector_mount_path.
-
#path_configuration ⇒ Object
Returns the value of attribute path_configuration.
-
#user_agent_pattern ⇒ Object
Returns the value of attribute user_agent_pattern.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #path_configuration_json ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 |
# File 'lib/turbo_desktop/configuration.rb', line 5 def initialize @path_configuration = default_path_configuration @user_agent_pattern = /Turbo Desktop/ @inspector_enabled = false # Where the engine is mounted; the inspector meta tag advertises assets # under this prefix. Override if you mount the engine elsewhere. @inspector_mount_path = "/turbo-desktop" end |
Instance Attribute Details
#inspector_enabled ⇒ Object
Returns the value of attribute inspector_enabled.
3 4 5 |
# File 'lib/turbo_desktop/configuration.rb', line 3 def inspector_enabled @inspector_enabled end |
#inspector_mount_path ⇒ Object
Returns the value of attribute inspector_mount_path.
3 4 5 |
# File 'lib/turbo_desktop/configuration.rb', line 3 def inspector_mount_path @inspector_mount_path end |
#path_configuration ⇒ Object
Returns the value of attribute path_configuration.
3 4 5 |
# File 'lib/turbo_desktop/configuration.rb', line 3 def path_configuration @path_configuration end |
#user_agent_pattern ⇒ Object
Returns the value of attribute user_agent_pattern.
3 4 5 |
# File 'lib/turbo_desktop/configuration.rb', line 3 def user_agent_pattern @user_agent_pattern end |
Instance Method Details
#path_configuration_json ⇒ Object
14 15 16 |
# File 'lib/turbo_desktop/configuration.rb', line 14 def path_configuration_json @path_configuration.to_json end |