Class: MissionControl::Jobs::Theme::Configuration
- Inherits:
-
Object
- Object
- MissionControl::Jobs::Theme::Configuration
- Defined in:
- lib/mission_control/jobs/theme/configuration.rb
Overview
Hold user-configurable options for the theme middleware.
Instance Attribute Summary collapse
-
#mount_path ⇒ String?
Override the auto-discovered engine mount path (e.g. “/admin/jobs”).
-
#syntax_highlighting ⇒ Boolean
Whether to inject Prism.js syntax highlighting for JSON payloads (default:
true).
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 |
# File 'lib/mission_control/jobs/theme/configuration.rb', line 18 def initialize @mount_path = nil @syntax_highlighting = true end |
Instance Attribute Details
#mount_path ⇒ String?
Returns override the auto-discovered engine mount path (e.g. “/admin/jobs”). When nil, RouteDiscovery detects it at boot.
12 13 14 |
# File 'lib/mission_control/jobs/theme/configuration.rb', line 12 def mount_path @mount_path end |
#syntax_highlighting ⇒ Boolean
Returns whether to inject Prism.js syntax highlighting for JSON payloads (default: true).
16 17 18 |
# File 'lib/mission_control/jobs/theme/configuration.rb', line 16 def syntax_highlighting @syntax_highlighting end |