Sha256: 18c892fbfad70ffaef71fd999b8a7eab38cb31f805a986335d15dd0246cd10dc
Contents?: true
Size: 271 Bytes
Versions: 58
Compression:
Stored size: 271 Bytes
Contents
module LocalizedName def localize(locale = I18n.locale) string = YAML.load(self) if string.is_a?(Hash) and string[locale.to_s] return string[locale.to_s] end self rescue NoMethodError self end end class String include LocalizedName end
Version data entries
58 entries across 57 versions & 4 rubygems