Sha256: 2dc22aa54493259eb409e725f750c1bd8715c88df068c76cb29935728ed42cbc

Contents?: true

Size: 935 Bytes

Versions: 17

Compression:

Stored size: 935 Bytes

Contents

# This gem takes a string and outputs ASCII art, generated by the
# FIGLET library. While it defaults to the 'big' font, an optional
# flag can be passed (-f or --font) with a string following it
# (e.g., slant) that will change the font that is used.
#
# The ruby Figlet implementation was written by Tim Fletcher
# (twoggle@gmail.com), and will only be curosrily maintained
# by the author of this rubygem (Michael Tierney,
# dev@panpainter.com).
#
# Author::    Michael Tierney (mailto:dev@panpainter.com)
# Copyright:: Copyright (c) 2010 Michael Tierney
# License::   Distributed under the MIT License

require 'artii/cli'
require 'artii/base'
require 'artii/figlet'

module Artii
  FONTPATH = File.expand_path(File.dirname(__FILE__) + '/../lib/figlet/fonts')

  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

end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
lotrd-0.1.9 vendor/cache/ruby/2.6.0/gems/artii-2.1.2/lib/artii.rb
lotrd-0.1.8 vendor/cache/ruby/2.6.0/gems/artii-2.1.2/lib/artii.rb
lotrd-0.1.6 vendor/cache/ruby/2.6.0/gems/artii-2.1.2/lib/artii.rb
lotrd-0.1.5 vendor/cache/ruby/2.6.0/gems/artii-2.1.2/lib/artii.rb
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/artii-2.1.2/lib/artii.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/artii-2.1.2/lib/artii.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/artii-2.1.2/lib/artii.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/artii-2.1.2/lib/artii.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/artii-2.1.2/lib/artii.rb
artii-2.1.2 lib/artii.rb
artii-2.1.1 lib/artii.rb
artii-2.1.0 lib/artii.rb
artii-2.0.4 lib/artii.rb
artii-2.0.3 lib/artii.rb
artii-2.0.2 lib/artii.rb
artii-2.0.1 lib/artii.rb
artii-2.0.0 lib/artii.rb