Sha256: e89907fd6fda2a26f049ac759e306467d87902a9eb209ae276812ce0885f3a86
Contents?: true
Size: 302 Bytes
Versions: 4
Compression:
Stored size: 302 Bytes
Contents
class Order def initialize @lines = [ ['c', 'd'] ] @attrs = [ 'a', 'b' ] end def to_a # [ @attrs ] << lines arr = [ @attrs ] lines.each do |i| arr += i end arr end def lines @lines end def to_csv to_a end end puts Order.new.to_csv.inspect
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
efo_nelfo-0.0.4 | lib/efo_nelfo/foo.rb |
efo_nelfo-0.0.3 | lib/efo_nelfo/foo.rb |
efo_nelfo-0.0.2 | lib/efo_nelfo/foo.rb |
efo_nelfo-0.0.1 | lib/efo_nelfo/foo.rb |