vendored/puppet/lib/puppet/pops/serialization/from_data_converter.rb in bolt-0.20.3 vs vendored/puppet/lib/puppet/pops/serialization/from_data_converter.rb in bolt-0.20.5
- old
+ new
@@ -62,11 +62,11 @@
# @param value [Data] the value to convert
# @param options {Symbol => <Boolean,String>} options hash
# @option options [Loaders::Loader] :loader the loader to use. Can be `nil` in which case the default is
# determined by the {Types::TypeParser}.
# @option options [Boolean] :allow_unresolved `true` to allow that rich_data hashes are kept "as is" if the
- # designated '__pcore_type__' cannot be resolved. Defaults to `false`.
+ # designated '__ptype' cannot be resolved. Defaults to `false`.
# @return [RichData] the processed result.
#
# @api public
def self.convert(value, options = EMPTY_HASH)
new(options).convert(value)
@@ -76,10 +76,10 @@
#
# @param options {Symbol => Object} options hash
# @option options [Loaders::Loader] :loader the loader to use. Can be `nil` in which case the default is
# determined by the {Types::TypeParser}.
# @option options [Boolean] :allow_unresolved `true` to allow that rich_data hashes are kept "as is" if the
- # designated '__pcore_type__' cannot be resolved. Defaults to `false`.
+ # designated '__ptype' cannot be resolved. Defaults to `false`.
#
# @api public
def initialize(options = EMPTY_HASH)
@allow_unresolved = options[:allow_unresolved]
@allow_unresolved = false if @allow_unresolved.nil?