Module: CLI::UI::Frame::FrameStyle::Bracket

Extended by:
CLI::UI::Frame::FrameStyle, T::Sig
Defined in:
lib/cli/ui/frame/frame_style/bracket.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



84
85
86
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 84

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

.divider(text, color:) ⇒ Object



64
65
66
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 64

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

.prefixObject



26
27
28
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 26

def prefix
  VERTICAL
end

.start(text, color:) ⇒ Object



45
46
47
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 45

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

.style_nameObject



21
22
23
# File 'lib/cli/ui/frame/frame_style/bracket.rb', line 21

def style_name
  :bracket
end