1

I'v learned i18n locales file from svenfuchs/rails-i18n

one usage I don't get it: ... date: formats: default: ! '%m-%d-%Y' ...

What is "!" here meaning ?

if this is a stupid question, forgive me.

Thanks for help

user452541
  • 11
  • 3

1 Answers1

1

It means it's a "non-specific tag", which just means it should be treated as a string or array, etc by whatever is handling the YAML.

See more here: http://yaml.org/refcard.html

And there's also a good explanation in this post: What does a single exclamation mark do in YAML?

Community
  • 1
  • 1
Tyler
  • 11,272
  • 9
  • 65
  • 105
  • thanks for the answer and links provided. I searched the "!" rather than "exclamation" before I ask, so missed those with answer to my question. – user452541 Oct 10 '13 at 21:04
  • No problem. If my answer (or any answer) was helpful, feel free to vote for it and/or mark it as the solution. – Tyler Oct 10 '13 at 21:18