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

Returns a new instance of StackItem.


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

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)

Returns the value of attribute color


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

def color
  @color
end

#frame_styleObject (readonly)

Returns the value of attribute frame_style


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

def frame_style
  @frame_style
end