Method: Lono::Pro::Importer#run

Defined in:
lib/lono/pro/importer.rb

#runObject



11
12
13
14
15
16
17
18
19
# File 'lib/lono/pro/importer.rb', line 11

def run
  # Examples:
  #   Lono::Pro::Importer::Erb.new(source, options.clone).run
  #   Lono::Pro::Importer::Dsl.new(source, options.clone).run
  type = @options[:type] || 'dsl'
  importer_class = "Lono::Pro::Importer::#{type.classify}"
  importer_class = Object.const_get(importer_class)
  importer_class.new(@source, @options.clone).run
end