instance method
wrap_with_namespace
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
wrap_with_namespace(content)
No documentation comment.
Parameters
-
contentreq
Source
# File railties/lib/rails/generators/base.rb, line 296
def wrap_with_namespace(content) # :doc:
content = indent(content).chomp
"module #{namespace.name}\n#{content}\nend\n"
end
Defined in railties/lib/rails/generators/base.rb line 296
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Base