module EacRubyUtils::AbstractMethods::InstanceMethods

Public Instance Methods

abstract_method?(method_name) click to toggle source
# File lib/eac_ruby_utils/abstract_methods.rb, line 51
def abstract_method?(method_name)
  self.class.abstract_methods.include?(method_name.to_sym)
end
method_missing(method_name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/eac_ruby_utils/abstract_methods.rb, line 45
def method_missing(method_name, *arguments, &block)
  raise_abstract_method(method_name) if abstract_method?(method_name)

  super
end
raise_abstract_method(method_name) click to toggle source
# File lib/eac_ruby_utils/abstract_methods.rb, line 55
def raise_abstract_method(method_name)
  raise ::NoMethodError, "Abstract method \"#{method_name}\" hit in \"#{self}\""
end
respond_to_missing?(method_name, include_private = false) click to toggle source
Calls superclass method
# File lib/eac_ruby_utils/abstract_methods.rb, line 41
def respond_to_missing?(method_name, include_private = false)
  super || abstract_method?(method_name)
end