Exception: CLI::UI::Widgets::InvalidWidgetHandle
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- CLI::UI::Widgets::InvalidWidgetHandle
- Defined in:
- lib/cli/ui/widgets.rb
Instance Method Summary collapse
-
#initialize(handle) ⇒ InvalidWidgetHandle
constructor
A new instance of InvalidWidgetHandle.
- #message ⇒ Object
Constructor Details
#initialize(handle) ⇒ InvalidWidgetHandle
Returns a new instance of InvalidWidgetHandle.
51 52 53 54 |
# File 'lib/cli/ui/widgets.rb', line 51 def initialize(handle) super @handle = handle end |
Instance Method Details
#message ⇒ Object
56 57 58 59 60 |
# File 'lib/cli/ui/widgets.rb', line 56 def keys = Widget.available.join(',') "invalid widget handle: #{@handle} " \ "-- must be one of CLI::UI::Widgets.available (#{keys})" end |