Module: RIO::Error::NotImplemented

Included in:
RL::WithPath
Defined in:
lib/rio/exception/notimplemented.rb

Instance Method Summary collapse

Instance Method Details

#nodef(*args) ⇒ Object



48
49
50
51
52
53
# File 'lib/rio/exception/notimplemented.rb', line 48

def nodef(*args) 
  method_name = Kernel.caller[0].match(/(?:.+):in \`(.+)\'$/)[1]
  class_name = self.class.to_s
  call_str = "#{class_name}.#{method_name}(#{args.join(',')})"
  raise(RIO::Exception::MethodNotImplemented, "\n#{call_str} is not implemented\n")
end