# How does discourse generate its default avatars?

**URL:** <https://meta.discourse.org/t/how-does-discourse-generate-its-default-avatars/19348>\
**Category:** Feature\
**Created:** [27. August 2014 um 14:22 UTC](https://meta.discourse.org/t/how-does-discourse-generate-its-default-avatars/19348 "2014-08-27T14:22:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![trident](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trident/32/2078_2.png) [@trident](https://meta.discourse.org/u/trident)\
**Post date:** [27. August 2014 um 16:16 UTC](https://meta.discourse.org/t/how-does-discourse-generate-its-default-avatars/19348/4 "2014-08-27T16:16:38Z")

</div>

> <https://stackoverflow.com/questions/1274675/what-does-warray-mean/1274703#1274703>

`%w{}` becomes an array of strings, and the [join method](http://www.ruby-doc.org/core-2.1.2/Array.html#method-i-join) is called to convert it to a space separated string. These instructions are wrapped in [backticks](http://ruby-doc.org/core-1.9.3/Kernel.html#method-i-60). The `convert` application is called with the arguments from the instructions array. Remember that `"#{object}"` is an in-string replacement; where the object in question will be converted to a string.

---

_[View the full topic](https://meta.discourse.org/t/how-does-discourse-generate-its-default-avatars/19348)._
