Module: CustomErrors::Methods
- Defined in:
- lib/azure/custom_errors.rb
Instance Method Summary collapse
Instance Method Details
#api_not_implemented(klass) ⇒ Object
29 30 31 32 33 |
# File 'lib/azure/custom_errors.rb', line 29 def api_not_implemented(klass) caller.first.match(/in \`(.+)\'/) method_name = $1 raise CustomErrors::InterfaceNotImplementedError.new("#{klass.class.name} needs to implement '#{method_name}' for interface #{self.name}!") end |