class Profound::Theme

Public Class Methods

new(theme) click to toggle source
# File lib/profound.rb, line 13
def initialize(theme)
  @theme = theme
end

Public Instance Methods

color() click to toggle source
# File lib/profound.rb, line 17
def color
  @theme == :dark ? 'black' : 'white'
end
inverse_color() click to toggle source
# File lib/profound.rb, line 21
def inverse_color
  @theme == :dark ? 'white' : 'black'
end