Sha256: 9ff5a0aa07b7c2f6dd72de8e4aaf0bb8efe6cbb2bc9ee06f49a9a874061ff344

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 Bytes

Contents

require_relative 'base'

module WhirledPeas
  module Command
    # List title fonts installed on the user's system and print sample text in each.
    class Fonts < Base
      def self.description
        'List installed title fonts with sample text'
      end

      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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 lib/whirled_peas/command/fonts.rb
whirled_peas-0.12.0 lib/whirled_peas/command/fonts.rb
whirled_peas-0.11.1 lib/whirled_peas/command/fonts.rb
whirled_peas-0.11.0 lib/whirled_peas/command/fonts.rb
whirled_peas-0.10.0 lib/whirled_peas/command/fonts.rb
whirled_peas-0.9.1 lib/whirled_peas/command/fonts.rb
whirled_peas-0.9.0 lib/whirled_peas/command/fonts.rb
whirled_peas-0.8.0 lib/whirled_peas/command/fonts.rb