Exception: CLI::UI::Frame::FrameStyle::InvalidFrameStyleName
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- CLI::UI::Frame::FrameStyle::InvalidFrameStyleName
- Extended by:
- T::Sig
- Defined in:
- lib/cli/ui/frame/frame_style.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidFrameStyleName
constructor
A new instance of InvalidFrameStyleName.
- #message ⇒ Object
Methods included from T::Sig
Constructor Details
#initialize(name) ⇒ InvalidFrameStyleName
Returns a new instance of InvalidFrameStyleName.
101 102 103 104 |
# File 'lib/cli/ui/frame/frame_style.rb', line 101 def initialize(name) super @name = name end |
Instance Method Details
#message ⇒ Object
107 108 109 110 111 112 |
# File 'lib/cli/ui/frame/frame_style.rb', line 107 def keys = FrameStyle::MAP.keys.map(&:inspect).join(', ') "invalid frame style: #{@name.inspect}" \ ' -- must be one of CLI::UI::Frame::FrameStyle::MAP ' \ "(#{keys})" end |