Class: Blueprints::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/blueprints/convertable.rb

Class Method Summary collapse

Class Method Details

.for(format, options = {}) ⇒ Object


23
24
25
26
27
28
# File 'lib/blueprints/convertable.rb', line 23

def self.for(format, options = {})
  require "blueprints/convertable/#{format}"
  Class.new("Blueprints::#{format.capitalize}Converter".constantize) do |options|
    include Convertable
  end
end