Class: XRT::Command::Dump
- Inherits:
-
Object
- Object
- XRT::Command::Dump
- Defined in:
- lib/xrt/commands.rb
Instance Method Summary collapse
Instance Method Details
#dump_file(target_file) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/xrt/commands.rb', line 13 def dump_file target_file warn "Dumping #{target_file}" checker = XRT::DepthChecker.new parsed, annotated_source = checker.check open(target_file).read puts annotated_source unless parsed raise "Failed to parser #{target_file} (#{index}/#{target_files.length})" end end |
#execute(files) ⇒ Object
7 8 9 10 11 |
# File 'lib/xrt/commands.rb', line 7 def execute(files) files.each{|file| dump_file file } end |