class Object

Public Instance Methods

restore(dstore, key, default=nil) click to toggle source
# File lib/autofixer/config/view_config.rb, line 12
def restore(dstore, key, default=nil)
  dstore.transaction do
    dstore[key] || default
  end
end
script() click to toggle source
# File lib/autofixer/config/view_config.rb, line 30
def script
  %q(
    <script>

    </script>
  )
end
store(dstore, key, value) click to toggle source
# File lib/autofixer/config/view_config.rb, line 6
def store(dstore, key, value)
  dstore.transaction do
    dstore[key] = value
  end
end
style() click to toggle source
# 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