Class: Rubyoverflow::Styling

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyoverflow/styling.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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_colorObject (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_colorObject (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