Class: Puppet::Cleaner::QuotedBooleans
- Inherits:
-
Object
- Object
- Puppet::Cleaner::QuotedBooleans
- Defined in:
- lib/puppet-cleaner/workers/quotedbooleans.rb
Instance Method Summary collapse
Instance Method Details
#operate(line) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/puppet-cleaner/workers/quotedbooleans.rb', line 7 def operate(line) value = line.current.value return if !['true', 'false'].include?(value) line.parts.delete_at(line.position) line.insert(line.position, [Part.create([:NAME, {:value => value}])]) end |
#part_names ⇒ Object
3 4 5 |
# File 'lib/puppet-cleaner/workers/quotedbooleans.rb', line 3 def part_names [:STRING] end |