Method: Puppet::Pops::Types::TypeFormatter#string_PTimespanType
- Defined in:
- lib/puppet/pops/types/type_formatter.rb
#string_PTimespanType(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.
258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/puppet/pops/types/type_formatter.rb', line 258 def string_PTimespanType(t) min = t.from max = t.to append_array('Timespan', 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 |