lib/import/nuke_script.rb in tracksperanto-1.3.1 vs lib/import/nuke_script.rb in tracksperanto-1.4.0

- old
+ new

@@ -8,26 +8,11 @@ def self.distinct_file_ext ".nk" end - # Nuke files are extensively indented and indentation is significant. - # We use this to always strip the lines we process since we capture before - # indentation becomes crucial - class IOC < DelegateClass(IO) - def initialize(h) - __setobj__(h) - end - - def gets_and_strip - s = __getobj__.gets - s ? s.strip : nil - end - - end - def parse(io) - scan_for_tracker3_nodes(IOC.new(io)) + scan_for_tracker3_nodes(Tracksperanto::ExtIO.new(io)) end private TRACKER_3_PATTERN = /^Tracker3 \{/ \ No newline at end of file