Sha256: 8607d229461840a9c5e1e1e3eca6a867f131cf4b294114bfab5c3f3a5cd2c167
Contents?: true
Size: 231 Bytes
Versions: 2
Compression:
Stored size: 231 Bytes
Contents
module Lino module Utilities def map_and_join(collection, &block) collection.map { |item| block.call(item) }.join(' ') end def join_with(separator) lambda { |item| item.join(separator) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lino-1.0.0 | lib/lino/utilities.rb |
lino-0.1.0 | lib/lino/utilities.rb |