Class: Feathers::Config
- Inherits:
-
Object
- Object
- Feathers::Config
- Defined in:
- lib/feathers/config.rb
Class Attribute Summary collapse
-
.black ⇒ Object
Returns the value of attribute black.
-
.danger_element ⇒ Object
Returns the value of attribute danger_element.
-
.dark ⇒ Object
Returns the value of attribute dark.
-
.error_background ⇒ Object
Returns the value of attribute error_background.
-
.highlight ⇒ Object
Returns the value of attribute highlight.
-
.info_element ⇒ Object
Returns the value of attribute info_element.
-
.light ⇒ Object
Returns the value of attribute light.
-
.medium ⇒ Object
Returns the value of attribute medium.
-
.note_background ⇒ Object
Returns the value of attribute note_background.
-
.notice_background ⇒ Object
Returns the value of attribute notice_background.
-
.success_element ⇒ Object
Returns the value of attribute success_element.
-
.warning_background ⇒ Object
Returns the value of attribute warning_background.
-
.warning_border ⇒ Object
writeonly
Sets the attribute warning_border.
-
.warning_element ⇒ Object
Returns the value of attribute warning_element.
-
.white ⇒ Object
Returns the value of attribute white.
Class Method Summary collapse
Class Attribute Details
.black ⇒ Object
Returns the value of attribute black.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def black @black end |
.danger_element ⇒ Object
Returns the value of attribute danger_element.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def danger_element @danger_element end |
.dark ⇒ Object
Returns the value of attribute dark.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def dark @dark end |
.error_background ⇒ Object
Returns the value of attribute error_background.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def error_background @error_background end |
.highlight ⇒ Object
Returns the value of attribute highlight.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def highlight @highlight end |
.info_element ⇒ Object
Returns the value of attribute info_element.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def info_element @info_element end |
.light ⇒ Object
Returns the value of attribute light.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def light @light end |
.medium ⇒ Object
Returns the value of attribute medium.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def medium @medium end |
.note_background ⇒ Object
Returns the value of attribute note_background.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def note_background @note_background end |
.notice_background ⇒ Object
Returns the value of attribute notice_background.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def notice_background @notice_background end |
.success_element ⇒ Object
Returns the value of attribute success_element.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def success_element @success_element end |
.warning_background ⇒ Object
Returns the value of attribute warning_background.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def warning_background @warning_background end |
.warning_border=(value) ⇒ Object (writeonly)
Sets the attribute warning_border
20 21 22 |
# File 'lib/feathers/config.rb', line 20 def warning_border=(value) @warning_border = value end |
.warning_element ⇒ Object
Returns the value of attribute warning_element.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def warning_element @warning_element end |
.white ⇒ Object
Returns the value of attribute white.
5 6 7 |
# File 'lib/feathers/config.rb', line 5 def white @white end |
Class Method Details
.set_defaults ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/feathers/config.rb', line 36 def set_defaults @light = "#efefef" @medium = "#ccc" @dark = "#777" @highlight = "#ffe" @notice_background = "#ecffd6" @warning_background = "#fbefb9" @error_background = "#ffebeb" @note_background = "#d8f2ff" @danger_element = "#cf0404" @info_element = "#448ccb" @success_element = "#7ba900" @warning_element = "#f3a24d" @black = "#000" @white = "#fff" end |