Class: Themer::Configuration
- Inherits:
-
Object
- Object
- Themer::Configuration
- Defined in:
- lib/themer/configuration.rb
Instance Attribute Summary collapse
-
#auto ⇒ Object
Returns the value of attribute auto.
-
#day ⇒ Object
Returns the value of attribute day.
-
#day_time ⇒ Object
Returns the value of attribute day_time.
-
#default ⇒ Object
Returns the value of attribute default.
-
#night ⇒ Object
Returns the value of attribute night.
-
#night_time ⇒ Object
Returns the value of attribute night_time.
-
#themes ⇒ Object
Returns the value of attribute themes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 |
# File 'lib/themer/configuration.rb', line 22 def initialize @themes = ['default'] @default = 'default' @auto = false @day = 'light' @night = 'dark' @day_time = '6:00 am' @night_time = '6:00 pm' end |
Instance Attribute Details
#auto ⇒ Object
Returns the value of attribute auto.
16 17 18 |
# File 'lib/themer/configuration.rb', line 16 def auto @auto end |
#day ⇒ Object
Returns the value of attribute day.
17 18 19 |
# File 'lib/themer/configuration.rb', line 17 def day @day end |
#day_time ⇒ Object
Returns the value of attribute day_time.
19 20 21 |
# File 'lib/themer/configuration.rb', line 19 def day_time @day_time end |
#default ⇒ Object
Returns the value of attribute default.
15 16 17 |
# File 'lib/themer/configuration.rb', line 15 def default @default end |
#night ⇒ Object
Returns the value of attribute night.
18 19 20 |
# File 'lib/themer/configuration.rb', line 18 def night @night end |
#night_time ⇒ Object
Returns the value of attribute night_time.
20 21 22 |
# File 'lib/themer/configuration.rb', line 20 def night_time @night_time end |
#themes ⇒ Object
Returns the value of attribute themes.
14 15 16 |
# File 'lib/themer/configuration.rb', line 14 def themes @themes end |