Class: Tracksperanto::Import::ShakeScript

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

Defined Under Namespace

Classes: Traxtractor

Instance Attribute Summary

Attributes inherited from Base

#height, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

autodetects_size?, inherited, #report_progress

Methods included from ConstName

#const_name, included

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

.distinct_file_extObject



10
11
12
# File 'lib/import/shake_script.rb', line 10

def self.distinct_file_ext
  ".shk"
end

.human_nameObject



6
7
8
# File 'lib/import/shake_script.rb', line 6

def self.human_name
  "Shake .shk script file"
end

Instance Method Details

#parse(script_io) ⇒ Object



223
224
225
226
227
228
229
230
231
# File 'lib/import/shake_script.rb', line 223

def parse(script_io)
  trackers = []
  
  Traxtractor.accumulator = trackers
  Traxtractor.progress_block = lambda{|msg| report_progress(msg) }
  Traxtractor.new(script_io)
  
  trackers
end