Sha256: 6ccd4e0ab24cbfe43305e11e6d7a28f627fb7ff76af63e1d4dab99bc72c9e668

Contents?: true

Size: 417 Bytes

Versions: 11

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Handlebarsjs
  module Helpers
    # String manipulation
    module Str
      # Padr: take the value and give it padding on the right hand side
      class Padr < Handlebarsjs::BaseHelper
        register_cmdlet(Cmdlet::Str::Padr)

        def to_proc
          ->(value, count = nil, char = nil, _opts) { cmdlet.call(value, count, char) }
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
handlebarsjs-0.14.2 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.14.1 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.14.0 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.13.1 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.13.0 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.12.0 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.11.3 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.11.2 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.11.1 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.11.0 lib/handlebarsjs/helpers/str/padr.rb
handlebarsjs-0.10.0 lib/handlebarsjs/helpers/str/padr.rb