class method
self.new
Ruby on Rails 7.1.6
Since v7.0.10Signature
self.new(namespace)
No documentation comment.
Parameters
-
namespacereq
Source
# File activesupport/lib/active_support/code_generator.rb, line 8
def initialize(namespace)
@cache = METHOD_CACHES[namespace]
@sources = []
@methods = {}
@canonical_methods = {}
end
Defined in activesupport/lib/active_support/code_generator.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CodeGenerator::MethodSet