Module: Artii
- Defined in:
- lib/artii.rb,
lib/artii/cli.rb,
lib/artii/base.rb,
lib/figlet/font.rb,
lib/figlet/smusher.rb,
lib/figlet/typesetter.rb
Defined Under Namespace
Modules: Figlet
Classes: Base, CLI
Constant Summary
collapse
- FONTPATH =
File.expand_path(File.dirname(__FILE__) + '/../lib/figlet/fonts')
Class Method Summary
collapse
Class Method Details
.encoding_of(string) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/artii.rb', line 26
def self.encoding_of(string)
if is_19?
string.encoding.to_s
else
$KCODE
end
end
|
.is_19? ⇒ Boolean
22
23
24
|
# File 'lib/artii.rb', line 22
def self.is_19?
RUBY_VERSION[0, 3] == "1.9"
end
|