Method: Puppet::Property#should_to_s
- Defined in:
- lib/puppet/property.rb
#should_to_s(value) ⇒ String
Produces a pretty printing string for the given value. This default implementation calls #format_value_for_display on the class. A derived implementation may perform property specific pretty printing when the should values are not already in suitable form.
559 560 561 |
# File 'lib/puppet/property.rb', line 559 def should_to_s(value) self.class.format_value_for_display(value) end |