Sha256: 43fc2d0e0d022e0226f53c5cfd43c51cd2a9a1a5d0a5412c8bcfb8b4bcf76871
Contents?: true
Size: 139 Bytes
Versions: 1
Compression:
Stored size: 139 Bytes
Contents
class Array def to_construct map { |x| x.to_construct }.reverse. inject(:nil) { |cdr, car| Construct.new(car, cdr) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forsta-0.0.1 | lib/forsta/array.rb |