Sha256: 428719de3b46e538ecc252e4a57877feab339f738dbdee3e8b67c79f4dfac10e
Contents?: true
Size: 311 Bytes
Versions: 6
Compression:
Stored size: 311 Bytes
Contents
module Text def self.is_19? RUBY_VERSION[0, 3] == "1.9" end def self.encoding_of(string) if is_19? string.encoding.to_s else $KCODE end end def self.raise_19_incompat if is_19? raise "Text::Figlet is not compatible with Ruby 1.9 at this time" end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
text-1.0.4 | lib/text/util.rb |
text-1.0.3 | lib/text/util.rb |
text-1.0.2 | lib/text/util.rb |
text-1.0.1 | lib/text/util.rb |
text-1.0.0 | lib/text/util.rb |
text-0.2.0 | lib/text/util.rb |