Sha256: 8609a3f00b9848b6dc82136a638d80f11329101afe41acad442997b4442b95a2

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

module DataForge
  module File
    module RecordFileDefinition

      def self.from_input(name, &initialization_block)
        CSV::CSVRecordFileDefinition.new(name).tap { |definition| definition.instance_eval &initialization_block }
      end



      # Interface definition

      attr_reader :name, :fields

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
data_forge-0.1 lib/data_forge/file/record_file_definition.rb