Sha256: 4fc0bebce4221f0ab4710013bc8c189066798baff887f5ca2fc054be0dba8e81

Contents?: true

Size: 338 Bytes

Versions: 83

Compression:

Stored size: 338 Bytes

Contents

module OldSql
  module ReportDesign
    class Model
      attr_accessor :rows
      
      @rows = nil
      
      def initialize(value = [])
        @rows = value
      end
      
      def add(row)
        @rows << Row.new(row) unless row[0] == "#"
      end
      
      def row(index)
        @rows[index]
      end
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
old_sql-1.65.0 lib/old_sql/report_design/model.rb
old_sql-1.64.0 lib/old_sql/report_design/model.rb
old_sql-1.63.0 lib/old_sql/report_design/model.rb
old_sql-1.62.0 lib/old_sql/report_design/model.rb
old_sql-1.61.0 lib/old_sql/report_design/model.rb
old_sql-1.60.0 lib/old_sql/report_design/model.rb
old_sql-1.59.0 lib/old_sql/report_design/model.rb
old_sql-1.58.0 lib/old_sql/report_design/model.rb
old_sql-1.57.0 lib/old_sql/report_design/model.rb
old_sql-1.56.0 lib/old_sql/report_design/model.rb
old_sql-1.55.0 lib/old_sql/report_design/model.rb
old_sql-1.54.0 lib/old_sql/report_design/model.rb
old_sql-1.53.0 lib/old_sql/report_design/model.rb
old_sql-1.52.0 lib/old_sql/report_design/model.rb
old_sql-1.51.0 lib/old_sql/report_design/model.rb
old_sql-1.50.0 lib/old_sql/report_design/model.rb
old_sql-1.49.0 lib/old_sql/report_design/model.rb
old_sql-1.48.0 lib/old_sql/report_design/model.rb
old_sql-1.47.0 lib/old_sql/report_design/model.rb
old_sql-1.46.0 lib/old_sql/report_design/model.rb