lib/import/equalizer.rb in tracksperanto-1.3.1 vs lib/import/equalizer.rb in tracksperanto-1.4.0
- old
+ new
@@ -1,29 +1,15 @@
# Imports 3D Equalizer's text files
class Tracksperanto::Import::Equalizer < Tracksperanto::Import::Base
- class IOI < DelegateClass(IO)
- def initialize(io)
- __setobj__(io)
- end
-
- def gets_non_empty
- line = __getobj__.gets
- return nil if line.nil?
- s = line.strip
- return gets_non_empty if s.empty?
- s
- end
- end
-
def self.human_name
"3DE point export file"
end
def parse(passed_io)
ts = []
- io = IOI.new(passed_io)
+ io = Tracksperanto::ExtIO.new(passed_io)
num_t = detect_num_of_points(io)
num_t.times { ts << extract_tracker(io) }
ts
\ No newline at end of file