Simple Abstract

Simple lib to define abstract classes

Examples

require 'rubygems'
require 'simple_abstract'

module AbstractTest
  @abstract_methods = [:need_to_implement, :need_to_define]

  include AbstractClass
end

module AbstractSomth
  @abstract_methods = [:some_method]

  include AbstractClass
end

class Test
  def need_to_implement
  end

  def need_to_define
  end

  def some_method
  end

  include AbstractTest
  include AbstractSomth
end

Copyright © 2011 Nicklasos. See LICENSE.txt for further details.