Class: SULStyles::Colors::CssFile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#colorsObject (readonly)

Returns the value of attribute colors.



58
59
60
# File 'lib/sul_styles/colors.rb', line 58

def colors
  @colors
end

#titleObject (readonly)

Returns the value of attribute title.



58
59
60
# File 'lib/sul_styles/colors.rb', line 58

def title
  @title
end