Commit bfbb6ebc90bd52679e1ca0b620088cac80d910e4
1 parent
cba854b3
Exists in
master
config accepts custom palette arguements
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
lib/letter_avatar/colors.rb
lib/letter_avatar/configuration.rb
@@ -24,6 +24,14 @@ module LetterAvatar | @@ -24,6 +24,14 @@ module LetterAvatar | ||
24 | @colors_palette = v if Colors::PALETTES.include?(v) | 24 | @colors_palette = v if Colors::PALETTES.include?(v) |
25 | end | 25 | end |
26 | 26 | ||
27 | + def custom_palette | ||
28 | + @custom_palette ||= nil | ||
29 | + end | ||
30 | + | ||
31 | + def custom_palette=(v) | ||
32 | + @custom_palette = v | ||
33 | + end | ||
34 | + | ||
27 | def weight | 35 | def weight |
28 | @weight ||= 300 | 36 | @weight ||= 300 |
29 | end | 37 | end |