Class: ActiveSupport::CodeGenerator
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/code_generator.rb |
Class Method Summary
Instance Method Summary
Constructor Details
.new(owner, path, line) ⇒ CodeGenerator
Class Method Details
.batch(owner, path, line)
[ GitHub ]Instance Method Details
#define_cached_method(canonical_name, namespace:, as: nil, &block)
[ GitHub ]# File 'activesupport/lib/active_support/code_generator.rb', line 60
def define_cached_method(canonical_name, namespace:, as: nil, &block) @namespaces[namespace].define_cached_method(canonical_name, as: as, &block) end
#execute
[ GitHub ]# File 'activesupport/lib/active_support/code_generator.rb', line 64
def execute @namespaces.each_value do |method_set| method_set.apply(@owner, @path, @line - 1) end end