Sha256: 37dd86dc179b70677b86236ce7b642e18c8e4ad79c8ad2aa5c96aef262a15960

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

require 'csv_row_model/internal/dynamic_column_attribute_base'

module CsvRowModel
  module Export
    class DynamicColumnAttribute < CsvRowModel::DynamicColumnAttributeBase
      def unformatted_value
        formatted_cells
      end

      def source_cells
        header_models.map { |header_model| call_process_cell(header_model) }
      end

      class << self
        def define_process_cell(row_model_class, column_name)
          super { |header_model| header_model }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csv_row_model-1.0.0.beta2 lib/csv_row_model/internal/export/dynamic_column_attribute.rb