Class: Tracksperanto::Import::MatchMoverRZML

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

Defined Under Namespace

Classes: Listener

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)


5
6
7
# File 'lib/import/match_mover_rzml.rb', line 5

def self.autodetects_size?
  true
end

.distinct_file_extObject



13
14
15
# File 'lib/import/match_mover_rzml.rb', line 13

def self.distinct_file_ext
  ".rzml"
end

.human_nameObject



9
10
11
# File 'lib/import/match_mover_rzml.rb', line 9

def self.human_name
  "MatchMover RZML .rzml file"
end

Instance Method Details

#eachObject



79
80
81
82
# File 'lib/import/match_mover_rzml.rb', line 79

def each
  cb = lambda{|e| yield(e) }
  REXML::Document.parse_stream(@io, Listener.new(self, cb))
end