Method: Faker::Commerce.color

Defined in:
lib/faker/default/commerce.rb

.colorString

Produces a random color.

Examples:

Faker::Commerce.color #=> "lavender"

Returns:



15
16
17
# File 'lib/faker/default/commerce.rb', line 15

def color
  fetch('color.name')
end