Module: MethodNotImplemented::Extension
- Defined in:
- lib/method-not-implemented.rb
Instance Method Summary collapse
Instance Method Details
#method_not_implemented ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/method-not-implemented.rb', line 8 def method_not_implemented method = caller_locations(1,1)[0].label = case self when Class, Module "#{self.inspect}.#{method} (class or module method)" else "#{self.class.inspect}.#{method} (instance method)" end raise MethodNotImplemented, end |