Method: Puppet::Pops::Types::TypeFormatter#symbolic_key
- Defined in:
- lib/puppet/pops/types/type_formatter.rb
#symbolic_key(key) ⇒ 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.
Used when printing names of well known keys in an Object type. Placed in a separate method to allow override.
467 468 469 |
# File 'lib/puppet/pops/types/type_formatter.rb', line 467 def symbolic_key(key) @ruby ? "'#{key}'" : key end |