method

redefine_singleton_method

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Module
redefine_singleton_method(method, &block) public

Replaces the existing singleton method definition, if there is one, with the passed block as its body.

Show source
Register or log in to add new notes.