instance method wrap_with_namespace

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v4.2.9

Available in: v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

wrap_with_namespace(content)

No documentation comment.

Parameters

content req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close