Sha256: 813d955bfad541dc14d2081f252aab5021aad7ef6d8bb9310f98fae57987b1c8
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 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::Parser.parse(self, lang ? lang : I18n.locale) end # Typographyes the string inplace # See Typogrowth::Parser#parse! def typo! lang = nil Typogrowth::Parser.parse!(self, lang ? lang : I18n.locale) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typogrowth-0.9.1 | lib/typogrowth/string.rb |
typogrowth-0.9.0 | lib/typogrowth/string.rb |