Method: Puppet::Pops::Types::TypeFormatter#append_callable_params
- Defined in:
- lib/puppet/pops/types/type_formatter.rb
#append_callable_params(t) ⇒ Object
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/puppet/pops/types/type_formatter.rb', line 294 def append_callable_params(t) # translate to string, and skip Unit types append_strings(t.param_types.types.reject { |t2| t2.instance_of?(PUnitType) }, true) if t.param_types.types.empty? append_strings([0, 0], true) else append_elements(range_array_part(t.param_types.size_type), true) end # Add block T last (after min, max) if present) # append_strings([t.block_type], true) unless t.block_type.nil? chomp_list end |