Method: XDry::StringAdditions#capitalized_identifier
- Defined in:
- lib/xdry/support/string_additions.rb
#capitalized_identifier ⇒ Object
10 11 12 13 14 15 |
# File 'lib/xdry/support/string_additions.rb', line 10 def capitalized_identifier case self when 'id', 'uid' then upcase else self[0..0].upcase + self[1..-1] end end |