Module: DebugExtras::Settings

Defined in:
lib/debug_extras/settings.rb

Class Method Summary collapse

Class Method Details

.ap_optionsObject



4
5
6
# File 'lib/debug_extras/settings.rb', line 4

def ap_options
  { html: true, color: { array: :yellowish } }
end

.ap_styles(tag) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/debug_extras/settings.rb', line 8

def ap_styles(tag)
  {
    pre: {
      "background" => "#f5f8fa",
      "border" => "1px solid #ccc",
      "border-radius" => "0",
      "color" => "#111",
      "font-family" => "Menlo, Consolas, Ubuntu, monospace",
      "font-weight" => "bold",
      "font-size" => "12px",
      "line-height" => "1.43",
      "margin" => "0 0 10px",
      "padding" => "10px",
      "white-space" => "pre-wrap",
    },
    kbd: {
      "background" => "none",
      "box-shadow" => "none",
      "font-family" => "Menlo, Consolas, Ubuntu, monospace",
      "font-weight" => "bold",
      "font-size" => "12px",
      "padding" => "2px 4px"
    }
  }[tag]
end