Class: SULStyles::Colors::CssFile
- Inherits:
-
Object
- Object
- SULStyles::Colors::CssFile
- Defined in:
- lib/sul_styles/colors.rb
Overview
Utility class to model a CSS file that has a title and an array of colors
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:, colors:) ⇒ CssFile
constructor
A new instance of CssFile.
Constructor Details
#initialize(title:, colors:) ⇒ CssFile
Returns a new instance of CssFile.
59 60 61 62 |
# File 'lib/sul_styles/colors.rb', line 59 def initialize(title:, colors:) @title = title @colors = colors end |
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
58 59 60 |
# File 'lib/sul_styles/colors.rb', line 58 def colors @colors end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
58 59 60 |
# File 'lib/sul_styles/colors.rb', line 58 def title @title end |