Class: Puppet::Cleaner::Comment
- Defined in:
- lib/puppet-cleaner/parts.rb
Constant Summary
Constants inherited from Part
Part::DQESCAPE, Part::DQPATTERN, Part::DQSPECIAL, Part::SPECIAL_ESCAPE_SEQUENCES, Part::SQESCAPE, Part::SQPATTERN
Instance Method Summary collapse
Methods inherited from Part
create, #dqescape, #has_special_escape_sequences?, #initialize, #name, #name=, #show, #sqescape, #value, #value=
Constructor Details
This class inherits a constructor from Puppet::Cleaner::Part
Instance Method Details
#to_s ⇒ Object
93 94 95 |
# File 'lib/puppet-cleaner/parts.rb', line 93 def to_s value.empty? || value[0..0] == "#" ? "##{value}" : "# #{value}" end |