Method: Puppet::Pops::Types::TypeFormatter#string_PTimestampType
- Defined in:
- lib/puppet/pops/types/type_formatter.rb
#string_PTimestampType(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.
245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/puppet/pops/types/type_formatter.rb', line 245 def string_PTimestampType(t) min = t.from max = t.to append_array('Timestamp', min.nil? && max.nil?) do min.nil? ? append_default : append_string(min) unless max.nil? || max == min @bld << COMMA_SEP append_string(max) end end end |