Module: Adva::Static::Import::Format
- Defined in:
- lib/adva/static/import/format.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.for(path) ⇒ Object
5 6 7 8 |
# File 'lib/adva/static/import/format.rb', line 5 def self.for(path) name = File.extname(path).gsub('.', '').camelize const_get(name).new(path) if name.present? end |