Module: Dallal::AbstractInterface::Methods

Defined in:
lib/dallal/abstract_interface.rb

Instance Method Summary collapse

Instance Method Details

#api_not_implemented(klass) ⇒ Object



13
14
15
16
17
# File 'lib/dallal/abstract_interface.rb', line 13

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