Exception: Solid::Result::Error::InvalidSourceMethodArity

Inherits:
Solid::Result::Error show all
Defined in:
lib/solid/result/error.rb

Class Method Summary collapse

Class Method Details

.build(source:, method:, max_arity:) ⇒ Object



38
39
40
# File 'lib/solid/result/error.rb', line 38

def self.build(source:, method:, max_arity:)
  new("#{source.class}##{method.name} has unsupported arity (#{method.arity}). Expected 0..#{max_arity}")
end