Method: Vedeu::Borders::Title#render
- Defined in:
- lib/vedeu/borders/title.rb
#render ⇒ Array<Vedeu::Cells::Horizontal|Vedeu::Cells::Char>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Overwrite the border from Border#build_horizontal on the top border to include the title if given.
52 53 54 55 56 57 58 |
# File 'lib/vedeu/borders/title.rb', line 52 def render return horizontal if empty? horizontal[start_index..end_index] = chars horizontal end |