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.



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

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

Instance Method Details

#messageObject



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

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