instance method padding

Ruby on Rails 4.1.16

Since v4.1.16 Last seen in v4.1.16

Signature

padding(max_width)

No documentation comment.

Parameters

max_width req
Source
# File railties/lib/rails/generators/app_base.rb, line 198
        def padding(max_width)
          ' ' * (max_width - name.length + 2)
        end

Defined in railties/lib/rails/generators/app_base.rb line 198 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generators::AppBase::GemfileEntry

Type at least 2 characters to search.

↑↓ navigate · open · esc close