Class: Tracksperanto::Import::MatchMover

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

Instance Attribute Summary

Attributes inherited from Base

#height, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, #report_progress

Methods included from ZipTuples

#zip_curve_tuples

Methods included from BlockInit

#initialize

Methods included from Casts

#cast_to_float, #cast_to_int, #cast_to_string, included

Methods included from Safety

included, #safe_reader

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 .rz2 file"
end

Instance Method Details

#parse(io) ⇒ Object



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

def parse(io)
  trackers = []
  detect_format(io)
  extract_trackers(io)
end