Method: ANTLR3::CompileTask::GrammarSet#clean

Defined in:
lib/antlr3/task.rb

#cleanObject



179
180
181
182
183
184
185
186
# File 'lib/antlr3/task.rb', line 179

def clean
  for grammar in @grammars
    grammar.clean
  end
  if test( ?d, output_directory ) and ( Dir.entries( output_directory ) - %w( . .. ) ).empty?
    rmdir( output_directory )
  end
end