class WhirledPeas::Command::Fonts

List title fonts installed on the user's system and print sample text in each.

Public Class Methods

description() click to toggle source
# File lib/whirled_peas/command/fonts.rb, line 7
def self.description
  'List installed title fonts with sample text'
end

Public Instance Methods

start() click to toggle source
# File lib/whirled_peas/command/fonts.rb, line 11
def start
  require 'whirled_peas/utils/title_font'

  Utils::TitleFont.fonts.keys.each do |key|
    puts Utils::TitleFont.to_s(key.to_s, key)
    puts key.inspect
    puts
  end
end