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, included

Methods included from Safety

included, #safe_reader

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string, included

Class Method Details

.autodetects_size?Boolean

Returns:

  • (Boolean)


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

def self.autodetects_size?
  true
end

.distinct_file_extObject



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

def self.distinct_file_ext
  ".rz2"
end

.human_nameObject



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

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

Instance Method Details

#eachObject



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

def each
  detect_format(@io)
  extract_trackers(@io) { |t| yield(t) }
end