Sha256: 1b1ee1d7aa01d1dd925aefbb768bff5b91864c8d3450fa6c71a862f90d1a1096

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

module BerkeleyLibrary
  module TIND
    module Export
      class Row

        attr_reader :columns
        attr_reader :row_index

        def initialize(columns, row_index)
          @columns = columns
          @row_index = row_index
        end

        def values
          columns.map { |c| c.value_at(row_index) }
        end

        def each_value(&block)
          columns.map { |c| c.value_at(row_index) }.each(&block)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/tind/export/row.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/tind/export/row.rb