Module: CLI::UI::Frame::FrameStyle::Bracket
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
83
84
85
|
# File 'lib/cli/ui/frame/frame_style/bracket.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/bracket.rb', line 63
def divider(text, color:)
edge(text, color: color, first: DIVIDER)
end
|
.prefix ⇒ Object
25
26
27
|
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 25
def prefix
VERTICAL
end
|
.start(text, color:) ⇒ Object
44
45
46
|
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 44
def start(text, color:)
edge(text, color: color, first: TOP_LEFT)
end
|
.style_name ⇒ Object
20
21
22
|
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 20
def style_name
:bracket
end
|