Module: Typekit::Processing::Parser
- Defined in:
- lib/typekit/processing/parser.rb,
lib/typekit/processing/parser/json.rb,
lib/typekit/processing/parser/yaml.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.build(format) ⇒ Object
7 8 9 10 11 |
# File 'lib/typekit/processing/parser.rb', line 7 def self.build(format) self.const_get(format.to_s.upcase).new rescue NameError raise Error, 'Unknown format' end |