lib/typogrowth/string.rb in typogrowth-0.9.3 vs lib/typogrowth/string.rb in typogrowth-0.9.5

- old
+ new

@@ -5,13 +5,17 @@ class String # Typographyes the string and returns a result # See Typogrowth::Parser#parse def typo lang = nil - Typogrowth::Parser.parse(self, lang: lang ? lang : I18n.locale) + Typogrowth.parse(self, lang: lang ? lang : I18n.locale) end # Typographyes the string inplace # See Typogrowth::Parser#parse! def typo! lang = nil - Typogrowth::Parser.parse!(self, lang: lang ? lang : I18n.locale) + Typogrowth.parse!(self, lang: lang ? lang : I18n.locale) + end + + def is_ru? shadows = [] + Typogrowth.is_ru? self, shadows: shadows end end