Class: CLI::UI::Frame::FrameStack::StackItem
- Inherits:
-
Object
- Object
- CLI::UI::Frame::FrameStack::StackItem
- Extended by:
- T::Sig
- Defined in:
- lib/cli/ui/frame/frame_stack.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#frame_style ⇒ Object
readonly
Returns the value of attribute frame_style.
Instance Method Summary collapse
-
#initialize(color_name, style_name) ⇒ StackItem
constructor
A new instance of StackItem.
Methods included from T::Sig
Constructor Details
#initialize(color_name, style_name) ⇒ StackItem
Returns a new instance of StackItem.
23 24 25 26 |
# File 'lib/cli/ui/frame/frame_stack.rb', line 23 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)
Returns the value of attribute color.
14 15 16 |
# File 'lib/cli/ui/frame/frame_stack.rb', line 14 def color @color end |
#frame_style ⇒ Object (readonly)
Returns the value of attribute frame_style.
17 18 19 |
# File 'lib/cli/ui/frame/frame_stack.rb', line 17 def frame_style @frame_style end |