Top Level Namespace

Defined Under Namespace

Modules: DK

Instance Method Summary collapse

Instance Method Details

#restore(dstore, key, default = nil) ⇒ Object



12
13
14
15
16
# File 'lib/autofixer/config/view_config.rb', line 12

def restore(dstore, key, default=nil)
  dstore.transaction do
    dstore[key] || default
  end
end

#scriptObject



30
31
32
33
34
35
36
# File 'lib/autofixer/config/view_config.rb', line 30

def script
  %q(
    <script>

    </script>
  )
end

#store(dstore, key, value) ⇒ Object



6
7
8
9
10
# File 'lib/autofixer/config/view_config.rb', line 6

def store(dstore, key, value)
  dstore.transaction do
    dstore[key] = value
  end
end

#styleObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/autofixer/config/view_config.rb', line 18

def style
  %q(
    <style>
      h1,h2 { width: 100%; background-color: rgb(140, 129, 38); color: white; text-align: center; }
      ul, li { width: 100%; text-align: center; vertical-align: middle; padding: 0; margin: 0 auto;}
      ul li { list-style: none; padding: 0; margin: 0 auto; }
      ul li:hover { background-color: rgb(200, 200, 102); }
      a, a:visited { color: white; vertical-align: middle; line-height: 100px; }
    </style>
  )
end