Sha256: dc2a40b2cba0f5126bec96804b54c288b5039dc9205e18c8764d8d8f9aecb3e4
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
# encoding: utf-8 require 'i18n' require_relative '../typogrowth' class String # Typographyes the string and returns a result # See Typogrowth::Parser#parse def typo lang = nil Typogrowth.parse(self, lang: lang ? lang : I18n.locale) end # Typographyes the string inplace # See Typogrowth::Parser#parse! def typo! lang = nil Typogrowth.parse!(self, lang: lang ? lang : I18n.locale) end def is_ru? shadows = [] Typogrowth.is_ru? self, shadows: shadows end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typogrowth-0.9.5 | lib/typogrowth/string.rb |