Class: Twterm::Image::BlankLine

Inherits:
Twterm::Image show all
Defined in:
lib/twterm/image/blank_line.rb

Instance Method Summary collapse

Methods inherited from Twterm::Image

#!, #-, #_, #at, blank_line, #bold, #brackets, checkbox, #color, #column, cursor, #dim, empty, #initialize, #line, number, #parens, plural, remaining_resource, string, toggle_switch, #underlined, whitespace, #|

Constructor Details

This class inherits a constructor from Twterm::Image

Instance Method Details

#heightObject



4
5
6
# File 'lib/twterm/image/blank_line.rb', line 4

def height
  1
end

#render(_) ⇒ Object



8
9
10
# File 'lib/twterm/image/blank_line.rb', line 8

def render(_)
  self
end

#to_sObject



12
13
14
# File 'lib/twterm/image/blank_line.rb', line 12

def to_s
  "\n"
end

#widthObject



16
17
18
# File 'lib/twterm/image/blank_line.rb', line 16

def width
  0
end