You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2019. It is now read-only.
Aleksander Smywiński-Pohl edited this page Mar 16, 2018
·
2 revisions
Pascalize (based on Inflecto gem, could be written from scratch)
# Camelizes name of the given +object+ (acquired via .to_s) but with the first letter downcased.## E.g.# t(:pascalaize).(:messages_count)# Result:# 'messagesCount'defself.pascalaize(object)name=Inflecto.camelize(object)ifname.size > 1name=name[0].downcase + name[1..-1]elsename=name.downcaseendnameend