Class: Ra::Pattern::Stripes
Overview
A stripe 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: Transform::IDENTITY) ⇒ Stripes
constructor
A new instance of Stripes.
Methods inherited from Base
Constructor Details
#initialize(colors:, transform: Transform::IDENTITY) ⇒ Stripes
Returns a new instance of Stripes.
13 14 15 16 |
# File 'lib/ra/pattern/stripes.rb', line 13 def initialize(colors:, transform: Transform::IDENTITY) super(transform:) @colors = colors end |
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors.
9 10 11 |
# File 'lib/ra/pattern/stripes.rb', line 9 def colors @colors end |