Method: CLI::UI::Frame::FrameStyle::Box.start

Defined in:
lib/cli/ui/frame/frame_style/box.rb

.start(text, color:) ⇒ Object

Draws the “Open” line for this frame style

Attributes

  • text - (required) the text/title to output in the frame

Options

  • :color - (required) The color of the frame.

Output:

┏━━ Open ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

: (String text, color: CLI::UI::Color) -> String



46
47
48
# File 'lib/cli/ui/frame/frame_style/box.rb', line 46

def start(text, color:)
  edge(text, color: color, first: TOP_LEFT)
end