class Computering::Config

Attributes

style[RW]

Public Class Methods

style_defaults(id, type) click to toggle source
# File lib/computering/config.rb, line 42
def style_defaults(id, type)
  default = @style_defaults[id][type] || "-"
  (style[id] && style[id][type]) ? style[id][type] : default
end
styling(text, id, type) click to toggle source
# File lib/computering/config.rb, line 38
def styling(text, id, type)
  style_defaults(id, type).gsub("-", text)
end