Class: Handlebarsjs::Helpers::Str::Padr
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- Handlebarsjs::Helpers::Str::Padr
- Defined in:
- lib/handlebarsjs/helpers/str/padr.rb
Overview
Padr: take the value and give it padding on the right hand side
Instance Attribute Summary
Attributes inherited from BaseHelper
#block, #cmdlet, #parameter_names, #safe
Instance Method Summary collapse
Methods inherited from BaseHelper
#initialize, register_cmdlet, #wrapper
Constructor Details
This class inherits a constructor from Handlebarsjs::BaseHelper
Instance Method Details
#to_proc ⇒ Object
11 12 13 |
# File 'lib/handlebarsjs/helpers/str/padr.rb', line 11 def to_proc ->(value, count = nil, char = nil, _opts) { cmdlet.call(value, count, char) } end |