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
7 8 9 10 |
# File 'lib/adva/static/import/format.rb', line 7 def self.for(path) name = File.extname(path).gsub('.', '').camelize const_get(name).new(path) if name.present? end |