Class: Handlebarsjs::Helpers::Array::JoinPre
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- Handlebarsjs::Helpers::Array::JoinPre
- Defined in:
- lib/handlebarsjs/helpers/array/join_pre.rb
Overview
JoinPre: join an array of values with separator as a string and using the separator at the beginning of string
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/array/join_pre.rb', line 11 def to_proc ->(values, separator = ',', _opts) { wrapper(cmdlet.call(values, separator)) } end |