method

justify

rails latest stable - Class: ActiveSupport::Multibyte::Handlers::UTF8Handler

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

justify(str, integer, way, padstr=' ')
protected

Justifies a string in a certain way. Valid values for way are :right, :left and :center. Is primarily used as a helper method by rjust, ljust and center.