Module: CLI::UI::Frame::FrameStyle::Box

Extended by:
CLI::UI::Frame::FrameStyle, T::Sig
Defined in:
lib/cli/ui/frame/frame_style/box.rb

Constant Summary collapse

VERTICAL =
''
HORIZONTAL =
''
DIVIDER =
''
TOP_LEFT =
''
BOTTOM_LEFT =
''

Constants included from CLI::UI::Frame::FrameStyle

MAP

Class Method Summary collapse

Methods included from CLI::UI::Frame::FrameStyle

close, divider, lookup, prefix, prefix_width, print_at_x, start, style_name

Methods included from T::Sig

sig

Methods included from T::Helpers

#abstract!, #final!, #interface!, #mixes_in_class_methods, #sealed!

Class Method Details

.close(text, color:, right_text: nil) ⇒ Object



83
84
85
# File 'lib/cli/ui/frame/frame_style/box.rb', line 83

def close(text, color:, right_text: nil)
  edge(text, color: color, right_text: right_text, first: BOTTOM_LEFT)
end

.divider(text, color:) ⇒ Object



63
64
65
# File 'lib/cli/ui/frame/frame_style/box.rb', line 63

def divider(text, color:)
  edge(text, color: color, first: DIVIDER)
end

.prefixObject



25
26
27
# File 'lib/cli/ui/frame/frame_style/box.rb', line 25

def prefix
  VERTICAL
end

.start(text, color:) ⇒ Object



44
45
46
# File 'lib/cli/ui/frame/frame_style/box.rb', line 44

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

.style_nameObject



20
21
22
# File 'lib/cli/ui/frame/frame_style/box.rb', line 20

def style_name
  :box
end