Class: FeduxOrgStdlib::Icon
- Inherits:
-
Object
- Object
- FeduxOrgStdlib::Icon
- Extended by:
- Forwardable
- Defined in:
- lib/fedux_org_stdlib/icon.rb
Class Attribute Summary collapse
-
.colors ⇒ Object
readonly
Returns the value of attribute colors.
-
.patterns ⇒ Object
readonly
Returns the value of attribute patterns.
Instance Method Summary collapse
-
#initialize(string, color: '#9e9e9e') ⇒ Icon
constructor
A new instance of Icon.
Constructor Details
#initialize(string, color: '#9e9e9e') ⇒ Icon
Returns a new instance of Icon.
23 24 25 |
# File 'lib/fedux_org_stdlib/icon.rb', line 23 def initialize(string, color: '#9e9e9e') @icon = GeoPattern.generate(string, color: color, patterns: Icon.patterns) end |
Class Attribute Details
.colors ⇒ Object (readonly)
Returns the value of attribute colors.
20 21 22 |
# File 'lib/fedux_org_stdlib/icon.rb', line 20 def colors @colors end |
.patterns ⇒ Object (readonly)
Returns the value of attribute patterns.
20 21 22 |
# File 'lib/fedux_org_stdlib/icon.rb', line 20 def patterns @patterns end |