Class: FullscreenTui::Header
- Inherits:
-
Object
- Object
- FullscreenTui::Header
- Defined in:
- lib/fullscreen_tui/header.rb
Constant Summary collapse
- SEPERATOR =
$INPUT_RECORD_SEPARATOR
Instance Attribute Summary collapse
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(parts = nil) ⇒ Header
constructor
A new instance of Header.
- #output ⇒ Object
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
#parts ⇒ Object
Returns the value of attribute parts.
5 6 7 |
# File 'lib/fullscreen_tui/header.rb', line 5 def parts @parts end |
Instance Method Details
#output ⇒ Object
12 13 14 |
# File 'lib/fullscreen_tui/header.rb', line 12 def output parts.join SEPERATOR end |