Class: Tracksperanto::Import::ShakeScript
- 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
Methods included from ZipTuples
Methods included from BlockInit
Methods included from Casts
#cast_to_float, #cast_to_int, #cast_to_string, included
Methods included from Safety
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 |
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 |