Class: Puppet::Cleaner::TrailingWhitespace

Inherits:
Worker
  • Object
show all
Defined in:
lib/puppet-cleaner/workers/trailingwhitespace.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/trailingwhitespace.rb', line 7

def operate(line)
  line.remove(line.position) if line.next.name == :RETURN
end

#part_namesObject



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

def part_names
  [:BLANK]
end