Sha256: 4872b347fa9b9de14e978509f1bd4d26d6b730cb5fc187c1509c17c3464dc7a2
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
require "flex_station_data/presenters/plate_csv" module FlexStationData module Presenters class PlatesCsv include Concerns::Presenter attr_reader :file, :plates def initialize(file, plates) @file = file @plates = plates end def present(&plate_presenter) plate_presenter ||= PlateCsv [ ["File: #{file.to_path}"], *plates.flat_map(&plate_presenter) ] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flex-station-data-0.2.0 | lib/flex_station_data/presenters/plates_csv.rb |