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
: (String handle) -> void.
-
#message ⇒ Object
: -> String.
Constructor Details
#initialize(handle) ⇒ InvalidWidgetHandle
: (String handle) -> void
60 61 62 63 |
# File 'lib/cli/ui/widgets.rb', line 60 def initialize(handle) super @handle = handle end |
Instance Method Details
#message ⇒ Object
: -> String
66 67 68 69 70 |
# File 'lib/cli/ui/widgets.rb', line 66 def keys = Widgets.available.join(',') "invalid widget handle: #{@handle} " \ "-- must be one of CLI::UI::Widgets.available (#{keys})" end |