Class: MissionControl::Jobs::Theme::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mission_control/jobs/theme/configuration.rb

Overview

Hold user-configurable options for the theme middleware.

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathString?

Returns override the auto-discovered engine mount path (e.g. “/admin/jobs”). When nil, RouteDiscovery detects it at boot.

Returns:

  • (String, nil)

    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_highlightingBoolean

Returns whether to inject Prism.js syntax highlighting for JSON payloads (default: true).

Returns:

  • (Boolean)

    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