Class: WhirledPeas::Command::Fonts
- Inherits:
-
Base
- Object
- Base
- WhirledPeas::Command::Fonts
- Defined in:
- lib/whirled_peas/command/fonts.rb
Overview
List title fonts installed on the user’s system and print sample text in each.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
7 8 9 |
# File 'lib/whirled_peas/command/fonts.rb', line 7 def self.description 'List installed title fonts with sample text' end |
Instance Method Details
#start ⇒ Object
11 12 13 14 15 16 17 18 19 |
# 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 |