Class: Puppet::Cleaner::TrailingWhitespaceInComments

Inherits:
Worker
  • Object
show all
Defined in:
lib/puppet-cleaner/workers/trailingwhitespaceincomments.rb

Instance Method Summary collapse

Methods inherited from Worker

#get_param

Instance Method Details

#operate(line) ⇒ Object



7
8
9
# File 'lib/puppet-cleaner/workers/trailingwhitespaceincomments.rb', line 7

def operate(line)
  line.current.value.rstrip!
end

#part_namesObject



3
4
5
# File 'lib/puppet-cleaner/workers/trailingwhitespaceincomments.rb', line 3

def part_names
  [:COMMENT]
end