Sha256: 6b5644d605d247ebe3007e24e730b1fa98d2b7da3bb34b3e1633c953241afd62
Contents?: true
Size: 431 Bytes
Versions: 5
Compression:
Stored size: 431 Bytes
Contents
# encoding: utf-8 require_library %w( hirb ) module FeduxOrgStdlib class List private attr_reader :data public def initialize(*data) @data = data.flatten.map { |e| Hash(e) } end # Render data to table def to_s(**options) Hirb::Helpers::Table.render data, header_filter: proc { |h| h.humanize }, **options end # Data as array def to_a Array(data) end end end
Version data entries
5 entries across 5 versions & 1 rubygems