Class: Blueprints::Converter
- Inherits:
-
Object
- Object
- Blueprints::Converter
- 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, = {}) require "blueprints/convertable/#{format}" Class.new("Blueprints::#{format.capitalize}Converter".constantize) do || include Convertable end end |