class JekyllImport::Importer
Public Class Methods
inherited(base)
click to toggle source
# File lib/jekyll-import/importer.rb, line 5 def self.inherited(base) subclasses << base end
run(options = {})
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# File lib/jekyll-import/importer.rb, line 9 def self.subclasses @subclasses ||= [] end