Module: CLI::UI::Frame::FrameStyle::Box
Constant Summary
collapse
- VERTICAL =
'┃'
- HORIZONTAL =
'━'
- DIVIDER =
'┣'
- TOP_LEFT =
'┏'
- BOTTOM_LEFT =
'┗'
MAP
Class Method Summary
collapse
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
82
83
84
|
# File 'lib/cli/ui/frame/frame_style/box.rb', line 82
def close(text, color:, right_text: nil)
edge(text, color: color, right_text: right_text, first: BOTTOM_LEFT)
end
|
.divider(text, color:) ⇒ Object
62
63
64
|
# File 'lib/cli/ui/frame/frame_style/box.rb', line 62
def divider(text, color:)
edge(text, color: color, first: DIVIDER)
end
|
.prefix ⇒ Object
24
25
26
|
# File 'lib/cli/ui/frame/frame_style/box.rb', line 24
def prefix
VERTICAL
end
|
.start(text, color:) ⇒ Object
43
44
45
|
# File 'lib/cli/ui/frame/frame_style/box.rb', line 43
def start(text, color:)
edge(text, color: color, first: TOP_LEFT)
end
|
.style_name ⇒ Object
19
20
21
|
# File 'lib/cli/ui/frame/frame_style/box.rb', line 19
def style_name
:box
end
|