module AbstractInterface::Methods

Public Instance Methods

api_not_implemented(klass) click to toggle source
# File lib/abstract_interface.rb, line 18
def api_not_implemented(klass)
  caller.first.match(/in \`(.+)\'/)
  method_name = $1
  raise AbstractInterface::InterfaceNotImplementedError.new("#{klass.class.name} needs to implement '#{method_name}' for interface #{self.name}!")
end