Class: Tracksperanto::Import::ShakeScript

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

Defined Under Namespace

Classes: Sentinel, TrackExtractor

Instance Attribute Summary

Attributes inherited from Base

#height, #io, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

autodetects_size?, inherited, #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_float, #cast_to_int, #cast_to_string, included

Class Method Details

.distinct_file_extObject



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

def self.distinct_file_ext
  ".shk"
end

.human_nameObject



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

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

Instance Method Details

#eachObject



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

def each
  s = Sentinel.new
  s.progress_proc = method(:report_progress)
  s.tracker_proc = Proc.new
  TrackExtractor.new(@io, s)
end