module Para::ModelFieldParsers

Public Class Methods

parse!(model, fields_hash, mappings) click to toggle 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
registered_parsers() click to toggle source
# File lib/para/model_field_parsers.rb, line 3
def self.registered_parsers
  @registered_parsers ||= {}
end