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
Class Method Summary collapse
- .close(text, color:, right_text: nil) ⇒ Object
- .divider(text, color:) ⇒ Object
- .prefix ⇒ Object
- .start(text, color:) ⇒ Object
- .style_name ⇒ Object
Methods included from CLI::UI::Frame::FrameStyle
close, divider, lookup, prefix, prefix_width, print_at_x, start, style_name
Methods included from T::Sig
Methods included from T::Helpers
#abstract!, #final!, #interface!, #mixes_in_class_methods, #sealed!
Class Method Details
permalink .close(text, color:, right_text: nil) ⇒ Object
[View source] [View on GitHub]
84 85 86 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 84 def close(text, color:, right_text: nil) edge(text, color: color, right_text: right_text, first: BOTTOM_LEFT) end |
permalink .divider(text, color:) ⇒ Object
[View source] [View on GitHub]
64 65 66 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 64 def divider(text, color:) edge(text, color: color, first: DIVIDER) end |
permalink .prefix ⇒ Object
[View source] [View on GitHub]
26 27 28 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 26 def prefix VERTICAL end |
permalink .start(text, color:) ⇒ Object
[View source] [View on GitHub]
45 46 47 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 45 def start(text, color:) edge(text, color: color, first: TOP_LEFT) end |
permalink .style_name ⇒ Object
[View source] [View on GitHub]
21 22 23 |
# File 'lib/cli/ui/frame/frame_style/box.rb', line 21 def style_name :box end |