Class: JekyllImport::Importer
- Inherits:
-
Object
- Object
- JekyllImport::Importer
show all
- Defined in:
- lib/jekyll-import/importer.rb
Direct Known Subclasses
JekyllImport::Importers::Behance, JekyllImport::Importers::Blogger, JekyllImport::Importers::CSV, JekyllImport::Importers::Dotclear, JekyllImport::Importers::Drupal6, JekyllImport::Importers::Drupal7, JekyllImport::Importers::Drupal8, JekyllImport::Importers::Easyblog, JekyllImport::Importers::Enki, JekyllImport::Importers::Ghost, JekyllImport::Importers::GoogleReader, JekyllImport::Importers::Joomla, JekyllImport::Importers::Joomla3, JekyllImport::Importers::Jrnl, JekyllImport::Importers::MT, JekyllImport::Importers::Marley, JekyllImport::Importers::Medium, JekyllImport::Importers::Mephisto, JekyllImport::Importers::Pebble, JekyllImport::Importers::Pluxml, JekyllImport::Importers::Posterous, JekyllImport::Importers::RSS, JekyllImport::Importers::Roller, JekyllImport::Importers::S9Y, JekyllImport::Importers::S9YDatabase, JekyllImport::Importers::TextPattern, JekyllImport::Importers::Tumblr, JekyllImport::Importers::Typo, JekyllImport::Importers::WordPress, JekyllImport::Importers::WordpressDotCom
Class Method Summary
collapse
Class Method Details
.inherited(base) ⇒ Object
5
6
7
|
# File 'lib/jekyll-import/importer.rb', line 5
def self.inherited(base)
subclasses << base
end
|
.run(options = {}) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/jekyll-import/importer.rb', line 21
def self.run(options = {})
opts = stringify_keys(options)
require_deps
validate(opts) if respond_to?(:validate)
process(opts)
end
|
.stringify_keys(hash) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/jekyll-import/importer.rb', line 13
def self.stringify_keys(hash)
the_hash = hash.clone
hash.each_key do |key|
the_hash[(key.to_s rescue key) || key] = the_hash.delete(key)
end
the_hash
end
|
.subclasses ⇒ Object
9
10
11
|
# File 'lib/jekyll-import/importer.rb', line 9
def self.subclasses
@subclasses ||= []
end
|