Exception: CLI::UI::Widgets::InvalidWidgetHandle
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- CLI::UI::Widgets::InvalidWidgetHandle
- Extended by:
- T::Sig
- Defined in:
- lib/cli/ui/widgets.rb
Instance Method Summary collapse
-
#initialize(handle) ⇒ InvalidWidgetHandle
constructor
A new instance of InvalidWidgetHandle.
- #message ⇒ Object
Methods included from T::Sig
Constructor Details
#initialize(handle) ⇒ InvalidWidgetHandle
Returns a new instance of InvalidWidgetHandle.
65 66 67 68 |
# File 'lib/cli/ui/widgets.rb', line 65 def initialize(handle) super @handle = handle end |
Instance Method Details
#message ⇒ Object
71 72 73 74 75 |
# File 'lib/cli/ui/widgets.rb', line 71 def keys = Widgets.available.join(',') "invalid widget handle: #{@handle} " \ "-- must be one of CLI::UI::Widgets.available (#{keys})" end |