Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/address_titlecase/titleizer.rb
Overview
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'
Instance Method Summary collapse
- #address_titlecase(opts = {}) ⇒ Object (also: #address_titleize)
Instance Method Details
#address_titlecase(opts = {}) ⇒ Object Also known as: address_titleize
60 61 62 |
# File 'lib/address_titlecase/titleizer.rb', line 60 def address_titlecase(opts = {}) AddressTitlecase::Titleizer.titleize(self, opts) end |