Class: Rubyoverflow::Styling
- Inherits:
-
Object
- Object
- Rubyoverflow::Styling
- Defined in:
- lib/rubyoverflow/styling.rb
Instance Attribute Summary collapse
-
#link_color ⇒ Object
readonly
Returns the value of attribute link_color.
-
#tag_background_color ⇒ Object
readonly
Returns the value of attribute tag_background_color.
-
#tag_foreground_color ⇒ Object
readonly
Returns the value of attribute tag_foreground_color.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Styling
constructor
A new instance of Styling.
Constructor Details
#initialize(hash) ⇒ Styling
Returns a new instance of Styling.
5 6 7 8 9 10 |
# File 'lib/rubyoverflow/styling.rb', line 5 def initialize(hash) dash = StylingDash.new hash @link_color = dash.link_color @tag_background_color = dash.tag_background_color @tag_foreground_color = dash.tag_foreground_color end |
Instance Attribute Details
#link_color ⇒ Object (readonly)
Returns the value of attribute link_color.
3 4 5 |
# File 'lib/rubyoverflow/styling.rb', line 3 def link_color @link_color end |
#tag_background_color ⇒ Object (readonly)
Returns the value of attribute tag_background_color.
3 4 5 |
# File 'lib/rubyoverflow/styling.rb', line 3 def tag_background_color @tag_background_color end |
#tag_foreground_color ⇒ Object (readonly)
Returns the value of attribute tag_foreground_color.
3 4 5 |
# File 'lib/rubyoverflow/styling.rb', line 3 def tag_foreground_color @tag_foreground_color end |