Sha256: 9f5e13b4d3ad424fe65f6cdad3bc179e3fcf189266d72a02563690a073bc999a
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
# encoding: UTF-8 # frozen_string_literal: true class MethodNotImplemented < StandardError VERSION = "1.0.1" module Extension def method_not_implemented method = caller_locations(1,1)[0].label message = case self when Class, Module "#{self.inspect}.#{method} (class or module method)" else "#{self.class.inspect}.#{method} (instance method)" end raise MethodNotImplemented, message end end end Object.send :include, MethodNotImplemented::Extension
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
method-not-implemented-1.0.1 | lib/method-not-implemented.rb |