Class: Feathers::Config

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.blackObject

Returns the value of attribute black.



5
6
7
# File 'lib/feathers/config.rb', line 5

def black
  @black
end

.danger_elementObject

Returns the value of attribute danger_element.



5
6
7
# File 'lib/feathers/config.rb', line 5

def danger_element
  @danger_element
end

.darkObject

Returns the value of attribute dark.



5
6
7
# File 'lib/feathers/config.rb', line 5

def dark
  @dark
end

.error_backgroundObject

Returns the value of attribute error_background.



5
6
7
# File 'lib/feathers/config.rb', line 5

def error_background
  @error_background
end

.highlightObject

Returns the value of attribute highlight.



5
6
7
# File 'lib/feathers/config.rb', line 5

def highlight
  @highlight
end

.info_elementObject

Returns the value of attribute info_element.



5
6
7
# File 'lib/feathers/config.rb', line 5

def info_element
  @info_element
end

.lightObject

Returns the value of attribute light.



5
6
7
# File 'lib/feathers/config.rb', line 5

def light
  @light
end

.mediumObject

Returns the value of attribute medium.



5
6
7
# File 'lib/feathers/config.rb', line 5

def medium
  @medium
end

.note_backgroundObject

Returns the value of attribute note_background.



5
6
7
# File 'lib/feathers/config.rb', line 5

def note_background
  @note_background
end

.notice_backgroundObject

Returns the value of attribute notice_background.



5
6
7
# File 'lib/feathers/config.rb', line 5

def notice_background
  @notice_background
end

.success_elementObject

Returns the value of attribute success_element.



5
6
7
# File 'lib/feathers/config.rb', line 5

def success_element
  @success_element
end

.warning_backgroundObject

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

Parameters:

  • value

    the value to set the attribute warning_border to.



20
21
22
# File 'lib/feathers/config.rb', line 20

def warning_border=(value)
  @warning_border = value
end

.warning_elementObject

Returns the value of attribute warning_element.



5
6
7
# File 'lib/feathers/config.rb', line 5

def warning_element
  @warning_element
end

.whiteObject

Returns the value of attribute white.



5
6
7
# File 'lib/feathers/config.rb', line 5

def white
  @white
end

Class Method Details

.set_defaultsObject



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