Sha256: d01c24bd9fd73fd0db343983b7cc6b3fb0e86cf12cff6b70669fd4bf22df870f

Contents?: true

Size: 357 Bytes

Versions: 22

Compression:

Stored size: 357 Bytes

Contents

module Bmg
  module Writer

  protected

    def infer_headers(from)
      attrlist = if from.is_a?(Type) && from.knows_attrlist?
        from.to_attrlist
      elsif from.is_a?(Hash)
        from.keys
      end
      attrlist ? output_preferences.order_attrlist(attrlist) : nil
    end

  end # module Writer
end # module Bmg
require_relative 'writer/csv'

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bmg-0.21.2 lib/bmg/writer.rb
bmg-0.21.0 lib/bmg/writer.rb
bmg-0.20.4 lib/bmg/writer.rb
bmg-0.20.2 lib/bmg/writer.rb
bmg-0.20.1 lib/bmg/writer.rb
bmg-0.20.0 lib/bmg/writer.rb
bmg-0.19.2 lib/bmg/writer.rb
bmg-0.19.1 lib/bmg/writer.rb
bmg-0.19.0 lib/bmg/writer.rb
bmg-0.18.15 lib/bmg/writer.rb
bmg-0.18.14 lib/bmg/writer.rb
bmg-0.18.13 lib/bmg/writer.rb
bmg-0.18.12 lib/bmg/writer.rb
bmg-0.18.11 lib/bmg/writer.rb
bmg-0.18.10 lib/bmg/writer.rb
bmg-0.18.9 lib/bmg/writer.rb
bmg-0.18.8 lib/bmg/writer.rb
bmg-0.18.7 lib/bmg/writer.rb
bmg-0.18.6 lib/bmg/writer.rb
bmg-0.18.5 lib/bmg/writer.rb