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
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_Hash, #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.
166 167 168 169 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 166 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.
150 151 152 153 154 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 150 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.
171 172 173 174 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 171 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.
176 177 178 179 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 176 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.
156 157 158 159 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 156 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.
161 162 163 164 |
# File 'lib/puppet/pops/evaluator/runtime3_converter.rb', line 161 def convert_VersionRange(o, scope, undef_value) # Puppet 3x cannot handle SemVerRanges. Use the string form o.to_s end |