Class: Tracksperanto::Import::MatchMover

Inherits:
Base
  • Object
show all
Defined in:
lib/import/match_mover.rb

Instance Attribute Summary

Attributes inherited from Base

#height, #io, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, known_snags, #report_progress

Methods included from BlockInit

#initialize

Methods included from ZipTuples

#zip_curve_tuples

Methods included from ConstName

#const_name

Methods included from Safety

#safe_reader

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string

Class Method Details

.autodetects_size?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/import/match_mover.rb', line 3

def self.autodetects_size?
  true
end

.distinct_file_extObject



11
12
13
# File 'lib/import/match_mover.rb', line 11

def self.distinct_file_ext
  ".rz2"
end

.human_nameObject



7
8
9
# File 'lib/import/match_mover.rb', line 7

def self.human_name
  "MatchMover REALVIZ Ascii Point Tracks .rz2 file"
end

Instance Method Details

#eachObject



15
16
17
18
19
# File 'lib/import/match_mover.rb', line 15

def each
  detect_format(@io)
  raise "No tracker data after detecting format" if @io.eof?
  extract_trackers(@io) { |t| yield(t) }
end