Class: Profound::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/profound.rb

Instance Method Summary collapse

Constructor Details

#initialize(theme) ⇒ Theme

Returns a new instance of Theme.



15
16
17
# File 'lib/profound.rb', line 15

def initialize(theme)
  @theme = theme
end

Instance Method Details

#colorObject



19
20
21
# File 'lib/profound.rb', line 19

def color
  @theme == :dark ? 'black' : 'white'
end

#inverse_colorObject



23
24
25
# File 'lib/profound.rb', line 23

def inverse_color
  @theme == :dark ? 'white' : 'black'
end