Exception: MayMay::UndefinedAbility

Inherits:
StandardError
  • Object
show all
Defined in:
lib/maymay/exceptions.rb

Constant Summary collapse

TEMPLATE =
"There are no action %s for %s"

Instance Method Summary collapse

Constructor Details

#initialize(action, subject) ⇒ UndefinedAbility

Returns a new instance of UndefinedAbility.



5
6
7
8
# File 'lib/maymay/exceptions.rb', line 5

def initialize(action, subject)
  message = TEMPLATE % [action, subject].map(&:inspect)
  super(message)
end