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.
102 103 104 105 |
# File 'lib/cli/ui/frame/frame_style.rb', line 102 def initialize(name) super @name = name end |
Instance Method Details
#message ⇒ Object
108 109 110 111 112 113 |
# File 'lib/cli/ui/frame/frame_style.rb', line 108 def keys = FrameStyle::MAP.keys.map(&:inspect).join(', ') "invalid frame style: #{@name.inspect} " \ '-- must be one of CLI::UI::Frame::FrameStyle::MAP ' \ "(#{keys})" end |