Module: EacRubyUtils::AbstractMethods
- Included in:
- Speaker::Receiver
- Defined in:
- lib/eac_ruby_utils/abstract_methods.rb
Overview
Support to abstract methods.
Usage:
require 'eac_ruby_utils/abstract_methods'
class BaseClass
include EacRubyUtils::AbstractMethods
abstract_methods :mymethod
end
BaseClass.new.mymethod # raise "Abstract method: mymethod"
class SubClass
def mymethod
"Implemented"
end
end
SubClass.new.mymethod # return "Implemented"
Defined Under Namespace
Modules: ClassMethods, InstanceMethods