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.



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

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

Instance Method Details

#messageObject



89
90
91
92
# File 'lib/cli/ui/widgets.rb', line 89

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