Rails: return capitalized string from model
<p>In Rails 4, I have an attribute in my model. Let's say <code>Dog.name</code>, what code do I need to always return <code>Dog.name.capitalize</code>, instead of the database value?</p>

<p>For example in C# I would do <code>public string Name {get { return this.capitalize}; set; }</code>. How would I do that in Ruby?</p>