Class: FullscreenTui::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/fullscreen_tui/header.rb

Constant Summary collapse

SEPERATOR =
$INPUT_RECORD_SEPARATOR

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parts = nil) ⇒ Header

Returns a new instance of Header.



8
9
10
# File 'lib/fullscreen_tui/header.rb', line 8

def initialize parts = nil
  self.parts = parts.nil? ? [] : parts
end

Instance Attribute Details

#partsObject

Returns the value of attribute parts.



5
6
7
# File 'lib/fullscreen_tui/header.rb', line 5

def parts
  @parts
end

Instance Method Details

#outputObject



12
13
14
# File 'lib/fullscreen_tui/header.rb', line 12

def output
  parts.join SEPERATOR
end