method

apply

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: MethodSet
apply(owner, path, line) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/code_generator.rb, line 25
      def apply(owner, path, line)
        unless @sources.empty?
          @cache.module_eval("# frozen_string_literal: true\n" + @sources.join(";"), path, line)
        end
        @methods.each do |name, as|
          owner.define_method(name, @cache.instance_method(as))
        end
      end
Register or log in to add new notes.