Class: CLI::UI::Frame::FrameStack::StackItem

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/ui/frame/frame_stack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color_name, style_name) ⇒ StackItem

: (CLI::UI::colorable color_name, frame_stylable style_name) -> void



16
17
18
19
# File 'lib/cli/ui/frame/frame_stack.rb', line 16

def initialize(color_name, style_name)
  @color = CLI::UI.resolve_color(color_name)
  @frame_style = CLI::UI.resolve_style(style_name)
end

Instance Attribute Details

#colorObject (readonly)

: CLI::UI::Color



10
11
12
# File 'lib/cli/ui/frame/frame_stack.rb', line 10

def color
  @color
end

#frame_styleObject (readonly)

: CLI::UI::Frame::FrameStyle



13
14
15
# File 'lib/cli/ui/frame/frame_stack.rb', line 13

def frame_style
  @frame_style
end