Class: Ra::Pattern::Rings
Overview
A rings pattern that alternates colors using:
colors[
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(colors:, transform: DEFAULT_TRANSFORM) ⇒ Rings
constructor
A new instance of Rings.
Methods inherited from Base
Constructor Details
#initialize(colors:, transform: DEFAULT_TRANSFORM) ⇒ Rings
Returns a new instance of Rings.
13 14 15 16 |
# File 'lib/ra/pattern/rings.rb', line 13 def initialize(colors:, transform: DEFAULT_TRANSFORM) super(transform:) @colors = colors end |
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors.
9 10 11 |
# File 'lib/ra/pattern/rings.rb', line 9 def colors @colors end |