Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/typogrowth/string.rb
Instance Method Summary collapse
-
#typo(lang = nil) ⇒ Object
Typographyes the string and returns a result See Typogrowth::Parser#parse.
-
#typo!(lang = nil) ⇒ Object
Typographyes the string inplace See Typogrowth::Parser#parse!.
Instance Method Details
#typo(lang = nil) ⇒ Object
Typographyes the string and returns a result See Typogrowth::Parser#parse
9 10 11 |
# File 'lib/typogrowth/string.rb', line 9 def typo lang = nil Typogrowth::Parser.parse(self, lang: lang ? lang : I18n.locale) end |
#typo!(lang = nil) ⇒ Object
Typographyes the string inplace See Typogrowth::Parser#parse!
14 15 16 |
# File 'lib/typogrowth/string.rb', line 14 def typo! lang = nil Typogrowth::Parser.parse!(self, lang: lang ? lang : I18n.locale) end |