instance method
wrap_with_namespace
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v4.2.9Signature
wrap_with_namespace(content)
No documentation comment.
Parameters
-
contentreq
Source
# File railties/lib/rails/generators/named_base.rb, line 49
def wrap_with_namespace(content)
content = indent(content).chomp
"module #{namespace.name}\n#{content}\nend\n"
end
Defined in railties/lib/rails/generators/named_base.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::NamedBase