Sha256: 9e326455ad89fd16793ef4c1799ba1ae3ff3dc6a99834bf0ecfb94255236edae

Contents?: true

Size: 245 Bytes

Versions: 7

Compression:

Stored size: 245 Bytes

Contents

class ImplementationMissing < NameError; end

module Kernel
  private
  
  def abstract_method(*syms)
    syms.each do |sym|
      define_method sym do
        raise ImplementationMissing, "#{self.class.name}##{sym}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiospieler-2014.11.28 lib/core-extensions/impl_missing.rb
radiospieler-2013.04.01 lib/core-extensions/impl_missing.rb
radiospieler-2012.09.13 lib/core-extensions/impl_missing.rb
radiospieler-0.3.12 lib/core-extensions/impl_missing.rb
radiospieler-0.3.11 lib/core-extensions/impl_missing.rb
radiospieler-0.3.10 lib/core-extensions/impl_missing.rb
radiospieler-0.3.8 lib/core-extensions/impl_missing.rb