Exception: Mack::Localization::Errors::InvalidMethodName

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mack-localization/errors.rb

Overview

Raise this error when the user is calling method that doesn’t exist (similar to NoMethodError)

Instance Method Summary collapse

Constructor Details

#initialize(method_name) ⇒ InvalidMethodName

Returns a new instance of InvalidMethodName.



56
57
58
# File 'lib/mack-localization/errors.rb', line 56

def initialize(method_name)
  super("Unknown method: #{method_name}")
end