Class: Puppet::Pops::Evaluator::Runtime3FunctionArgumentConverter Private
- Inherits:
-
Runtime3Converter
- Object
- Runtime3Converter
- Puppet::Pops::Evaluator::Runtime3FunctionArgumentConverter
- Defined in:
- lib/puppet/pops/evaluator/runtime3_converter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A Ruby function written for the 3.x API cannot be expected to handle extended data types. This converter ensures that they are converted to String format
Constant Summary
Constants inherited from Runtime3Converter
Puppet::Pops::Evaluator::Runtime3Converter::MAX_INTEGER, Puppet::Pops::Evaluator::Runtime3Converter::MIN_INTEGER
Instance Method Summary collapse
- #convert_Binary(o, scope, undef_value) ⇒ Object private
- #convert_Regexp(o, scope, undef_value) ⇒ Object private
- #convert_Timespan(o, scope, undef_value) ⇒ Object private
- #convert_Timestamp(o, scope, undef_value) ⇒ Object private
- #convert_Version(o, scope, undef_value) ⇒ Object private
- #convert_VersionRange(o, scope, undef_value) ⇒ Object private
Methods inherited from Runtime3Converter
#catalog_type_to_split_type_title, convert, #convert, #convert_Array, #convert_BigDecimal, #convert_Hash, #convert_Integer, #convert_Iterator, #convert_NilClass, #convert_Object, #convert_PAnyType, #convert_PCatalogEntryType, #convert_String, #convert_Symbol, instance, #map_args, map_args
Instance Method Details
#convert_Binary(o, scope, undef_value) ⇒ 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.
182 183 184 185 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 182 def convert_Binary(o, scope, undef_value) # Puppet 3x cannot handle Binary. Use the string form o.to_s end |
#convert_Regexp(o, scope, undef_value) ⇒ 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.
166 167 168 169 170 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 166 def convert_Regexp(o, scope, undef_value) # Puppet 3x cannot handle parameter values that are reqular expressions. Turn into regexp string in # source form o.inspect end |
#convert_Timespan(o, scope, undef_value) ⇒ 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.
187 188 189 190 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 187 def convert_Timespan(o, scope, undef_value) # Puppet 3x cannot handle Timespans. Use the string form o.to_s end |
#convert_Timestamp(o, scope, undef_value) ⇒ 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.
192 193 194 195 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 192 def convert_Timestamp(o, scope, undef_value) # Puppet 3x cannot handle Timestamps. Use the string form o.to_s end |
#convert_Version(o, scope, undef_value) ⇒ 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.
172 173 174 175 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 172 def convert_Version(o, scope, undef_value) # Puppet 3x cannot handle SemVers. Use the string form o.to_s end |
#convert_VersionRange(o, scope, undef_value) ⇒ 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.
177 178 179 180 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 177 def convert_VersionRange(o, scope, undef_value) # Puppet 3x cannot handle SemVerRanges. Use the string form o.to_s end |