method

def_method

rails latest stable - Class: ActiveModel::Lint::Tests

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

def_method(receiver, name, &block)
private

No documentation available.

# File activemodel/lib/active_model/lint.rb, line 108
        def def_method(receiver, name, &block)
          ::Object.instance_method(:define_singleton_method).bind_call(receiver, name, &block)
        end