Class: StaffBar::Config
- Inherits:
-
Object
- Object
- StaffBar::Config
- Defined in:
- lib/staff_bar/config.rb
Instance Attribute Summary collapse
-
#highlight_envs ⇒ Object
Returns the value of attribute highlight_envs.
-
#links ⇒ Object
Returns the value of attribute links.
-
#position ⇒ Object
Returns the value of attribute position.
-
#theme ⇒ Object
Returns the value of attribute theme.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 22 |
# File 'lib/staff_bar/config.rb', line 17 def initialize @links = [] @theme = :dark @position = :bottom @highlight_envs = [:production] end |
Instance Attribute Details
#highlight_envs ⇒ Object
Returns the value of attribute highlight_envs.
15 16 17 |
# File 'lib/staff_bar/config.rb', line 15 def highlight_envs @highlight_envs end |
#links ⇒ Object
Returns the value of attribute links.
15 16 17 |
# File 'lib/staff_bar/config.rb', line 15 def links @links end |
#position ⇒ Object
Returns the value of attribute position.
15 16 17 |
# File 'lib/staff_bar/config.rb', line 15 def position @position end |
#theme ⇒ Object
Returns the value of attribute theme.
15 16 17 |
# File 'lib/staff_bar/config.rb', line 15 def theme @theme end |