Class: CLI::UI::Frame::FrameStack::StackItem
- Inherits:
-
Object
- Object
- CLI::UI::Frame::FrameStack::StackItem
- Defined in:
- lib/cli/ui/frame/frame_stack.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
: CLI::UI::Color.
-
#frame_style ⇒ Object
readonly
: CLI::UI::Frame::FrameStyle.
Instance Method Summary collapse
-
#initialize(color_name, style_name) ⇒ StackItem
constructor
: (CLI::UI::colorable color_name, frame_stylable style_name) -> void.
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
#color ⇒ Object (readonly)
: CLI::UI::Color
10 11 12 |
# File 'lib/cli/ui/frame/frame_stack.rb', line 10 def color @color end |
#frame_style ⇒ Object (readonly)
: CLI::UI::Frame::FrameStyle
13 14 15 |
# File 'lib/cli/ui/frame/frame_stack.rb', line 13 def frame_style @frame_style end |