Class: Tracksperanto::Import::ShakeScript
- 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
Methods included from ZipTuples
Methods included from ConstName
Methods included from Safety
Methods included from Casts
#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string, included
Class Method Details
.distinct_file_ext ⇒ Object
11 12 13 |
# File 'lib/import/shake_script.rb', line 11 def self.distinct_file_ext ".shk" end |
.human_name ⇒ Object
7 8 9 |
# File 'lib/import/shake_script.rb', line 7 def self.human_name "Shake .shk script file" end |
.known_snags ⇒ Object
15 16 17 18 |
# File 'lib/import/shake_script.rb', line 15 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
#each ⇒ Object
20 21 22 23 24 25 |
# File 'lib/import/shake_script.rb', line 20 def each s = Sentinel.new s.progress_proc = method(:report_progress) s.tracker_proc = Proc.new TrackExtractor.new(@io, s) end |