Class: SWFMillInputResolver
- Inherits:
-
SimpleResolver
- Object
- SimpleResolver
- SWFMillInputResolver
- Defined in:
- lib/tasks/swfmill_input_resolver.rb
Instance Method Summary collapse
Methods inherited from SimpleResolver
#edit_warning, #execute, #files, #finish, #initialize, #xml_edit_warning
Constructor Details
This class inherits a constructor from SimpleResolver
Instance Method Details
#get_symbol_id(file) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tasks/swfmill_input_resolver.rb', line 13 def get_symbol_id(file) trimmed = file.gsub(@base_dir, '') parts = trimmed.split('.') parts.pop trimmed = parts.join('.') result = trimmed.split(File::SEPARATOR).join('.') result = result.gsub(/^./, '') return result end |
#ignore_file?(file) ⇒ Boolean
4 5 6 7 8 9 10 11 |
# File 'lib/tasks/swfmill_input_resolver.rb', line 4 def ignore_file?(file) base = File.basename(file) if(base == '.DS_Store' || base == 'Thumbs.db' || base.match(/^\d/)) @ignored_files << file return true end return false end |