Understanding the data in restaurant.yml

14 views
Skip to first unread message

Sibi Prabakaran

unread,
Feb 25, 2019, 3:51:10 PM2/25/19
to Ruby Faker
Hi everyone!

Background: I have been developing a Haskell client using the data available with faker. Let me know if this isn't the right forum to ask this question.

The `restaurant.yml` has this data:

``` yaml
en:
  faker:
    restaurant:
      name_prefix:
        - "??"
        - "???"
        - "##"
        - "###"
        - "####"
        - Belly
...
```

Now, I know that `#` get's translated to some number. But what does the `?` mean in the above field ?

Cheers,
Sibi Prabakaran

Benjamin Curtis

unread,
Feb 25, 2019, 3:54:12 PM2/25/19
to Ruby Faker
Each ? is replaced by a letter in the range A-Z.

Sibi Prabakaran

unread,
Feb 26, 2019, 1:27:12 PM2/26/19
to Ruby Faker
Thanks!
Reply all
Reply to author
Forward
0 new messages