Module: Hashtel
- Defined in:
- lib/hashtel.rb,
lib/hashtel/version.rb
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.pastel_color(string) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/hashtel.rb', line 5 def self.pastel_color(string) return "#FFFFFF" if string == "" hex_value = hashtel_hex_value(string) "##{hex_value}".upcase end |