Sha256: 8273617055e9d18a88648c585ca91b2f75304dd99600849565185b1daf861250

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

require_relative "az/constants"

module Az
  def self.az(input, font = :ascii)
    input.tr(
      FONTS[:ascii],
      (FONTS[(font || "").to_sym] or raise ArgumentError, "unknown az font: #{font}")
    )
  end
  class << self; alias of az; end

  def self.fonts
    FONTS.keys
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
az-2.1.0 lib/az.rb
az-2.0.2 lib/az.rb
az-2.0.1 lib/az.rb
az-2.0.0 lib/az.rb
az-1.0.1 lib/az.rb