method
apply
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::CodeGenerator::MethodSet
apply(owner, path, line)public
No documentation available.
# 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