class String

String .address_titlecase

Allow the AddressTitlecase::Titleizer.titleize method to be called on a String object as `address_titlecase`.
Method is also aliased to `address_titleize`.

Ex:
  '123 sesame st'.address_titlecase(overrides: {'st' => 'ST'}) => '123 Sesame ST'

Public Instance Methods

address_titlecase(opts = {}) click to toggle source
# File lib/address_titlecase/titleizer.rb, line 60
def address_titlecase(opts = {})
  AddressTitlecase::Titleizer.titleize(self, opts)
end
Also aliased as: address_titleize
address_titleize(opts = {})
Alias for: address_titlecase