Method: TTY::Font#inspect
- Defined in:
- lib/tty/font.rb
#inspect ⇒ Object Also known as: to_s
Inspect font attributes
41 42 43 44 45 46 47 48 |
# File 'lib/tty/font.rb', line 41 def inspect vars = [ "name=#{@font.inspect}", "letter_spacing=#{@space}", "char_height=#{@data['char_height']}" ] '#<%s:0x%x %s>' % [self.class, (object_id << 1), vars.join(', ')] end |