No commit activity in last 3 years
No release in over 3 years
This gem adds method `method_not_implemented` to every Ruby object. Invoking `method_not_implemented` in abstract method raises an exception if it hasn't been implemented.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 12.0
~> 3.2
 Project Readme

Tweaks every Ruby object with method_not_implemented.

Gem Version Build Status

About

class SomeBaseClass
  def some_method
    method_not_implemented
  end
end

class SomeDerivedClass < SomeBaseClass
  
end

If some_method will be invoked on instance of SomeDerivedClass MethodNotImplemented: SomeDerivedClass.some_method (instance method) will be raised.

Installing gem

Add to your Gemfile:

gem "method-not-implemented", "~> 1.0"

Running tests

Install bundler:

gem install bundler

Install dependencies:

cd method-not-implemented && bundle

Run tests:

cd method-not-implemented && bundle exec rake test