module CustomErrors::Methods

Public Instance Methods

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