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

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

Instance Method Summary collapse

Constructor Details

#initialize(argstring, pattern) ⇒ InvalidWidgetArguments

Returns a new instance of InvalidWidgetArguments.


64
65
66
67
68
# File 'lib/cli/ui/widgets.rb', line 64

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

Instance Method Details

#messageObject


70
71
72
73
# File 'lib/cli/ui/widgets.rb', line 70

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