module Patterns::AbstractInterface::Methods
Specifies the #api_not_implemented method
Public Instance Methods
api_not_implemented(klass)
click to toggle source
Raises an InterfaceNotImplemented exception if the class does not implement the function it is calling
# File app/models/bridge/abstract_interface.rb, line 19 def api_not_implemented(klass) caller.first.match(/in `(.+)'/) method_name = $1 raise InterfaceNotImplemented, ("#{klass.class.name} needs to implement '#{method_name}' for interface #{self.name}!") end