Module: Kernel

Defined in:
lib/abstract_method_error.rb

Instance Method Summary collapse

Instance Method Details

#abstract_method(*msg) ⇒ Object



6
7
8
# File 'lib/abstract_method_error.rb', line 6

def abstract_method(*msg)
  raise AbstractMethodError.new(msg.empty? ? "Abstract method called" : msg.join(' '))
end