Sha256: c4fd18f918eade5ac1a5d4923b96b125390e06028cd74eae68bc6f36d63409ef

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/importer.rb
lono-8.0.0.pre.rc5 lib/lono/importer.rb
lono-8.0.0.pre.rc4 lib/lono/importer.rb
lono-8.0.0.pre.rc3 lib/lono/importer.rb
lono-8.0.0.pre.rc2 lib/lono/importer.rb
lono-8.0.0.pre.rc1 lib/lono/importer.rb