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

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

.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

.known_snagsObject


14
15
16
17
# File 'lib/import/shake_script.rb', line 14

def self.known_snags
  'Expressions in node parameters may cause parse errors or incomplete imports. ' +
  'Take care to remove expressions or nodes containing them first.'
end

Instance Method Details

#eachObject


19
20
21
22
23
24
# File 'lib/import/shake_script.rb', line 19

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