Method: CLI::UI::Frame::FrameStyle::Box.close
- Defined in:
- lib/cli/ui/frame/frame_style/box.rb
.close(text, color:, right_text: nil) ⇒ Object
Draws the “Close” line for this frame style
Attributes
-
text- (required) the text/title to output in the frame
Options
-
:color- (required) The color of the frame. -
:right_text- Text to print at the right of the line. Defaults to nil
Output:
┗━━ Close ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
: (String text, color: CLI::UI::Color, ?right_text: String?) -> String
87 88 89 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 87 def close(text, color:, right_text: nil) edge(text, color: color, right_text: right_text, first: BOTTOM_LEFT) end |