class Holidays::Definition::Parser::CustomMethod

def call(methods)

def call(methods)
  return {} if methods.nil? || methods.empty?
  validate!(methods)
  custom_methods = {}
  methods.each do |name, pieces|
    arguments = parse_arguments!(pieces["arguments"])
    custom_methods[method_key(name, arguments)] = Entity::CustomMethod.new({
      name: name,
      arguments: arguments,
      source: pieces["ruby"],
    })
  end
  custom_methods
end