Exception: CLI::UI::Widgets::InvalidWidgetArguments

Inherits:
ArgumentError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/cli/ui/widgets.rb

Instance Method Summary collapse

Methods included from T::Sig

sig

Constructor Details

#initialize(argstring, pattern) ⇒ InvalidWidgetArguments

Returns a new instance of InvalidWidgetArguments.


77
78
79
80
81
# File 'lib/cli/ui/widgets.rb', line 77

def initialize(argstring, pattern)
  super
  @argstring = argstring
  @pattern   = pattern
end

Instance Method Details

#messageObject


84
85
86
87
# File 'lib/cli/ui/widgets.rb', line 84

def message
  "invalid widget arguments: #{@argstring} " \
    "-- must match pattern: #{@pattern.inspect}"
end