Module: ActiveRecord::Dbt::RequiredMethods

Defined Under Namespace

Classes: RequiredImplementationMissingError

Instance Method Summary collapse

Instance Method Details

#define_required_methods(*methods) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/active_record/dbt/required_methods.rb', line 6

def define_required_methods(*methods)
  methods.each do |method_name|
    define_method(method_name) do
      raise RequiredImplementationMissingError, "You must implement #{self.class}##{__method__}"
    end
  end
end