Skip to content

Commit

Permalink
Lay out default acronyms as a multi-line list
Browse files Browse the repository at this point in the history
Alphabetize this list, too.

This will make it easier to add/identify changes to this list in the future.
  • Loading branch information
timriley committed May 24, 2024
1 parent fa675bd commit 05dc070
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/dry/inflector/inflections/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,15 @@ def self.uncountable(inflect)
# @since 0.1.2
# @api private
def self.acronyms(inflect)
inflect.acronym(*%w[JSON HTTP OpenSSL HMAC CSRF API CSV])
inflect.acronym(*%w[
API
CSRF
CSV
HMAC
HTTP
JSON
OpenSSL
])
end

private_class_method :plural, :singular, :irregular, :uncountable, :acronyms
Expand Down

0 comments on commit 05dc070

Please sign in to comment.