Method: CLI::UI::Frame::FrameStyle::Box.divider
- Defined in:
- lib/cli/ui/frame/frame_style/box.rb
.divider(text, color:) ⇒ Object
Draws a “divider” line for the current frame style
Attributes
-
text- (required) the text/title to output in the frame
Options
-
:color- (required) The color of the frame.
Output:
: (String text, color: CLI::UI::Color) -> String
66 67 68 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 66 def divider(text, color:) edge(text, color: color, first: DIVIDER) end |