Exception: Angus::Remote::PathArgumentError

Inherits:
Exception
  • Object
show all
Defined in:
lib/angus/remote/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(current, expected) ⇒ PathArgumentError



39
40
41
42
# File 'lib/angus/remote/exceptions.rb', line 39

def initialize(current, expected)
  @current = current
  @expected = expected
end

Instance Method Details

#messageObject



44
45
46
# File 'lib/angus/remote/exceptions.rb', line 44

def message
  "Wrong number of arguments (#@current for #@expected)"
end