Exception: Scorpion::ArityMismatch

Inherits:
Error
  • Object
show all
Defined in:
lib/scorpion/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(block, expected_count) ⇒ ArityMismatch

Returns a new instance of ArityMismatch.



25
26
27
# File 'lib/scorpion/error.rb', line 25

def initialize( block, expected_count )
  super translate( :arity_mismatch, expected: expected_count, actual: block.arity )
end