public
Rubygem
Description: Ruby module that upon requirement will allow any object to become "abstract" by calling a single method
Homepage: http://www.bjeanes.com/
Clone URL: git://github.com/bjeanes/make_abstract.git
Search Repo:
Click here to lend your support to: make_abstract and make a donation at www.pledgie.com !
make_abstract / make_abstract.rb
100644 11 lines (10 sloc) 0.161 kb
1
2
3
4
5
6
7
8
9
10
11
require 'lib/make_abstract'
 
class Object
  class << self
    def make_abstract
      self.class_eval do
        include MakeAbstract
      end
    end
  end
end