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
Class Method Details
.distinct_file_ext ⇒ Object
10 11 12 |
# File 'lib/import/shake_script.rb', line 10 def self.distinct_file_ext ".shk" end |
.human_name ⇒ Object
6 7 8 |
# File 'lib/import/shake_script.rb', line 6 def self.human_name "Shake .shk script file" end |
.known_snags ⇒ Object
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
#each(&blk) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/import/shake_script.rb', line 19 def each(&blk) s = Sentinel.new s.progress_proc = method(:report_progress) s.tracker_proc = blk.to_proc TrackExtractor.new(@io, s) end |