Sha256: c47d961143d3e54b1f89a69062ea92af9f471b72747632e8ec4e7cca4409d633
Contents?: true
Size: 397 Bytes
Versions: 7
Compression:
Stored size: 397 Bytes
Contents
# Monkey patch this fix until Formatador 0.2.3 is released class Formatador def calculate_datum(header, hash) if !hash.keys.include?(header) && (splits = header.to_s.split('.')).length > 1 datum = nil splits.each do |split| d = (datum||hash) datum = d[split] || d[split.to_sym] || '' end else datum = hash[header] || '' end datum end end
Version data entries
7 entries across 7 versions & 1 rubygems