Class: Profound::Theme
- Inherits:
-
Object
- Object
- Profound::Theme
- Defined in:
- lib/profound.rb
Instance Method Summary collapse
- #color ⇒ Object
-
#initialize(theme) ⇒ Theme
constructor
A new instance of Theme.
- #inverse_color ⇒ Object
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
#color ⇒ Object
19 20 21 |
# File 'lib/profound.rb', line 19 def color @theme == :dark ? 'black' : 'white' end |
#inverse_color ⇒ Object
23 24 25 |
# File 'lib/profound.rb', line 23 def inverse_color @theme == :dark ? 'white' : 'black' end |