Method: ActiveSupport::CodeGenerator#execute
- Defined in:
- activesupport/lib/active_support/code_generator.rb
#execute ⇒ Object
69 70 71 72 73 74 75 76 77 |
# File 'activesupport/lib/active_support/code_generator.rb', line 69 def execute @namespaces.each_value do |method_set| method_set.apply(@owner, @path, @line - 1) end unless @sources.empty? @owner.class_eval("# frozen_string_literal: true\n" + @sources.join(";"), @path, @line - 1) end end |