Method: Puppet::Pops::Types::TypeFormatter#string_PCallableType

Defined in:
lib/puppet/pops/types/type_formatter.rb

#string_PCallableType(t) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



280
281
282
283
284
285
286
287
288
289
290
291
292
# File 'lib/puppet/pops/types/type_formatter.rb', line 280

def string_PCallableType(t)
  if t.return_type.nil?
    append_array('Callable', t.param_types.nil?) { append_callable_params(t) }
  elsif t.param_types.nil?
    append_array('Callable', false) { append_strings([[], t.return_type], false) }
  else
    append_array('Callable', false) do
      append_array('', false) { append_callable_params(t) }
      @bld << COMMA_SEP
      append_string(t.return_type)
    end
  end
end