module Para::ModelFieldParsers
Public Class Methods
Source
# File lib/para/model_field_parsers.rb, line 7 def self.parse!(model, fields_hash, mappings) registered_parsers.each do |_, parser_class| parser = parser_class.new(model, fields_hash, mappings) parser.parse! if parser.applicable? end end
Source
# File lib/para/model_field_parsers.rb, line 3 def self.registered_parsers @registered_parsers ||= {} end