instance method def_method

Ruby on Rails 8.1.2

Since v8.1.2 Private — implementation detail, not part of the public API

Signature

def_method(receiver, name, &block)

No documentation comment.

Parameters

receiver req
name req
block block
Source
# 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

Defined in activemodel/lib/active_model/lint.rb line 108 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Lint::Tests

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close