class Campa::Error::Parameters

Public Class Methods

new(given, expected_type) click to toggle source
Calls superclass method
# File lib/campa/error/parameters.rb, line 4
def initialize(given, expected_type)
  msg = "Parameter list may only contain #{expected_type}: "
  msg += "#{given} is not a #{expected_type}"
  super msg
end